ConnectionEventReceiver.onEvent()

DESCRIPTION

The implementation is invoked when a connection event occurs.

Supported events:

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

DECLARATION

    func onEvent(event: NabtoEdgeClientConnectionEvent)

PARAMETERS

event:
The callback event.