Class: ConnectionObserver

ConnectionObserver()

new ConnectionObserver()

Properties:
Name Type Description
connectionStateChanged function Sent to observers when the connection state changes in any way
connectionDidConnect function Sent to observers when connection has connected to the server and is about to send credentials
connectionFailedToConnect function Sent to observers when connection attempted to connect to the server but failed.
connectionFailedToConnectWithId function Sent to observers when connecting with external connection ID has failed.
connectionRequiresCode function Sent to observers when connection is in the process of logging in, but requires additional verification code.
connectionCodeError function Sent to observers when connection is in the process of logging in, a code has been sent to the server for verification, but this code is wrong.
connectionDidLogIn function Sent to observers when connection has logged in.
connectionFailedToLogIn function Sent to observers when connection has failed to log in.
connectionLostConnection function Sent to observers when connection to the server was lost.
connectionProcessingDisconnect function Sent to observers when the disconnect command is sent.
connectionDidDisconnect function Sent to observers when connection to the server was closed on request via disconnect method.
connectionRequestSucceeded function Sent to observers every time a request to the server has been received properly and without timeout or other terminal errors.