Represents a Stringee client.
The first step in using Stringee Website SDK is to initialize a StringeeClient instance by calling the StringeeClient() constructor.
Then connects to Stringee server by calling connect, pass in the access token.
For test purposes, you can generate the test token in Dashboard -> Tools -> Generate Access token.
StringeeClient()
Creates a new StringeeClient instance.
accessToken
|
The access token generated by your server. |
connect(accessToken)
|
Connects to Stringee server, using provided access token. |
disconnect()
|
Disconnects from Stringee server. |
sendCustomMessage(userId, data, callback)
|
Sends any data to other clients. -userId : String- data : Object |