Skip to content

👻__Library for integration ActionCable in Angular

Notifications You must be signed in to change notification settings

isopen/ngx-cable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NgX-Cable

Integrate ActionCable into your application.

Examples

angular
ionic
send message

Install

npm install ngx-cable --save

Native build

build instruction

Cable API

setCable(url: string), connect(url: string)

Connect to channel

isOpen()

Сhecking connection status

create(params: {channel: string, room: string}), subscribe(params: {channel: string, room: string})

Create a channel subscription

send(data: any, subscriptions?: ActionCable.Subscription[])

Send message to subscribers

perform(action: string, data: any, subscriptions?: ActionCable.Subscription[])

Send message to subscribers

unsubscribe(subscriptions?: ActionCable.Subscription[])

Unsubscribe from subscriptions

reject(subscription: ActionCable.Subscription)

Unsubscribe from the subscription

getSubscriptions()

Get active Subscriptions

getCountSubscriptions()

Get count Subscriptions

searchSubcriptions(id: int, room: string)

Search for a subscription

disconnect()

Disconnect from channel

Listener API

on(key)

broadcast(key, data)

off()

Read

http://edgeguides.rubyonrails.org/action_cable_overview.html

About

👻__Library for integration ActionCable in Angular

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published