action-cable

0.0.9 • Public • Published

Action Cable

A JavaScript sockets client for connecting to Rails ActionCable sockets.

Experimental

Work In Progress. Use at your own risk.

Install

npm install action-cable --save

Usage

import actionCable from 'action-cable';
 
// returns an Observable
let connection = actionCable(someUrl, someChannel);
 
connection.subscribe({next: data => {
  console.log('got:', data);
}});

Package Sidebar

Install

npm i action-cable

Weekly Downloads

11

Version

0.0.9

License

ISC

Last publish

Collaborators

  • jisaacks