Connection.addConnectionEventsReceiver()

DESCRIPTION

Add a callback function to receive connection events.

DECLARATION

    public func addConnectionEventsReceiver(cb: ConnectionEventReceiver) throws 

PARAMETERS

cb:
An implementation of the ConnectionEventReceiver protocol

THROWS ERRORS

INVALID_STATE:
if listener could not be added