Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 322 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 322 Bytes

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