Skip to content

yuki-torii/actioncable-esm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Install

$ yarn add actioncable-esm
# or
$ npm i --save actioncable-esm

Usage

import ActionCable from 'actioncable-esm'

var cable = ActionCable.createConsumer('ws://*/websocket')

cable.subscriptions.create('AppearanceChannel', {
  // normal channel code goes here...
})

export default cable