NgX-Cable
Integrate ActionCable into your application.
Examples
Install
npm install ngx-cable --save
Native build
Cable API
setCable(url: string), connect(url: string)
Connect to channel
isOpen()
Сhecking connection status
Create a channel subscription
Send message to subscribers
Send message to subscribers
Unsubscribe from subscriptions
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