dwrtc / ch.hsr.dsl.dwrtc.signaling / InternalClient / onReceiveMessage

onReceiveMessage

fun onReceiveMessage(emitter: (IExternalClient, ClientMessage) -> Unit): Unit

Overrides IInternalClient.onReceiveMessage

Register a listener that handles messages for this user

Parameters

emitter - a callable that receives the sender and the actual message