abstract fun addDirectMessageListener(sessionId: String, emitter: (IExternalClient, ClientMessage) -> Unit): Unit
Add a direct message listener. See InternalClient.onReceiveMessage
sessionId
- the session ID this listener is added for
emitter
- the callable to be called when a message is received