ConnectionEventReceiver.onEvent

DESCRIPTION

Invoked when a connection event occurs.

Supported events:

.CONNECTED        // connection established
.CLOSED           // connection closed
.CHANNEL_CHANGED  // connection type changed, e.g. from relay to p2p
.UNEXPECTED_EVENT // unexpected

DECLARATION

    func onEvent(event: NabtoEdgeClientConnectionEvent)

PARAMETERS

event:
The callback event.

ERRORS

Throws the following errors:

None.

RETURN VALUES

None.

EXAMPLES

None.