ngx-cable
npm install ngx-cable>
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