abstract fun addConnectionListener(listener: Listener!): Unit
Adds a listener called when connection occurs, ie when the connection is established and capabilities are exchanged.
listener - Listener!: the listener
listener