Learn how to add and configure QuickBlox SDK for your app.
Edge | Firefox | Chrome | Opera | Node.js | Safari |
---|---|---|---|---|---|
14+ | 52+ | 50+ | 36+ | 6+ | 11.1+ |
QB
is created.
init()
method.
Argument | Description |
---|---|
APPLICATION_ID | Application identifier. |
AUTH_KEY | Authorization key. |
AUTH_SECRET | Authorization secret. |
ACCOUNT_KEY | Account key. Required to get actual Chat and API endpoints for the right server. |
CONFIG | (optional) SDK configuration settings for custom endpoints, chat connecting, WebRTC, etc. |
CONFIG
object:
Field | Description |
---|---|
endpoints | Custom endpoints configuration. |
streamManagement | Stream management configuration. |
webrtc | WebRTC configuration. |
chatProtocol | Chat protocol configuration. Set 1 to use BOSH, set 2 to use WebSockets. Default: WebSocket. |
debug | Debug mode configuration. |
endpoints | Custom endpoints configuration. |
startSessionWithToken(sessionToken, callBack)
method. You can find out more about this in the Set existing session section.
CONFIG
object and pass it to the init()
method.
endpoints
field of the CONFIG
object:
Field | Description |
---|---|
api | API endpoint. |
chat | Chat endpoint |
CONFIG
object and then call the init()
method.
Debug modes | Description |
---|---|
0 | Turns off logging output. |
1 | Enables logging to the browser console with console.log() function (default value). |
2 | Enables logging to a file. Set the file in the file field. Works only on Node.js, in case of server implementations. |
CONFIG
parameter when calling init()
method. Review Initialize QuickBlox SDK section for more details.