Class IStreamChannelAbstract
Methods
Abstract
get Channel Name
get Channel Name ( ) : string
Returns string The channel name.
Abstract
get Subscribed User List
get Subscribed User List ( topic ) : UserList []
0: Success.
< 0: Failure.
Abstract
join
join ( options , requestId ? ) : number
Parameters
Optional
requestId : number
Returns number
0: Success.
< 0: Failure.
Abstract
join Topic
join Topic ( topic , options , requestId ? ) : number
Parameters
topic : string
Optional
requestId : number
Returns number
0: Success.
< 0: Failure.
Abstract
leave
leave ( requestId ? ) : number
Parameters
Optional
requestId : number
Returns number
0: Success.
< 0: Failure.
Abstract
leave Topic
leave Topic ( topic , requestId ? ) : number
Parameters
topic : string
Optional
requestId : number
Returns number
0: Success.
< 0: Failure.
Abstract
publish Topic Message
publish Topic Message ( topic , message , length , option ) : number
Parameters
topic : string
message : string
length : number
Returns number
0: Success.
< 0: Failure.
Abstract
publish Topic Message With Buffer
publish Topic Message With Buffer ( topic , message , length , option ) : number
Parameters
topic : string
message : Uint8Array
length : number
Returns number
Abstract
release
release ( ) : number
Returns number
0: Success.
< 0: Failure.
Abstract
renew Token
renew Token ( token ) : number
Returns number
Abstract
subscribe Topic
subscribe Topic ( topic , options , requestId ? ) : number
Parameters
topic : string
Optional
requestId : number
Returns number
0: Success.
< 0: Failure.
Abstract
unsubscribe Topic
unsubscribe Topic ( topic , options ) : number
Returns number
0: Success.
< 0: Failure.
The IStreamChannel class.
This class provides the stream channel methods that can be invoked by your app.