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

addDirectMessageListener

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

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