stopConnection:timeout

Stop the connection for this application. An ApplicationTimeoutException is thrown if the method does not succeed within the number of seconds specified by the timeout.

If no connection was previously stopped, then this operation has no effect. You can set the applicationCallback before calling this operation to receive asynchronous notification of connection status changes.

If a callback handler is registered, the sequence of callbacks as a result of calling stopConnection is:
  • onConnectionStatusChanged(ConnectionStatus.DISCONNECTING, 0, "")
  • onConnectionStatusChanged(ConnectionStatus.DISCONNECTED, 0, "")

Syntax

+ (void)stopConnection:(int32_t)timeout

Parameters

Returns

None.

Examples