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

ERRORS

Throws the following errors:

INVALID_STATE:
if listener could not be added

RETURN VALUES

None.

EXAMPLES

None.