connect

public static void connect(ConnectParams params, ConnectHandler handler)

Connects to the server using a business token.

Must be called after initialize.

Parameters

params

connection parameters — required: token; optional: timeout, reconnectKickEnable

handler

connection result callback; delivers userId on success or an error on failure