src/api/realtime/channel.ts
Channel object is basically an observable which emits every single event received from the according channel to its subscribers.
Should never be instantiated itself yet obtained from RealTime module instead.
Observable
const channel = rtm.channel("my_channel");
// For the typescript users it is also possible to point out the type of messages
// you expect from the channel:
const channel = rtm.channel<MyData>("my_channel");
Methods |
Public getLog | ||||||||
getLog(filter?: IFilteringCriterion
|
||||||||
Load channel messaging history
Parameters :
Example :
Returns :
Observable<RealTimeStoredMessage[]>
|
Public publish | ||||||
publish(data: any)
|
||||||
Send a message to the channel
Parameters :
Returns :
Observable<RealTimeCommandResponse>
|