dwrtc / ch.hsr.dsl.dwrtc.signaling / ClientService / addDirectMessageListener

addDirectMessageListener

fun addDirectMessageListener(sessionId: String, emitter: (IExternalClient, ClientMessage) -> Unit): Unit

Overrides IClientService.addDirectMessageListener

Add a direct message listener. See InternalClient.onReceiveMessage

Parameters

sessionId - the session ID this listener is added for

emitter - the callable to be called when a message is received