dwrtc / ch.hsr.dsl.dwrtc.signaling / IInternalClient

IInternalClient

interface IInternalClient

Represents the own user

Properties

sessionId

abstract val sessionId: String

the user's session ID

Functions

onReceiveMessage

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

Register a listener that handles messages for this user

sendMessage

abstract fun sendMessage(type: String, messageBody: String, recipient: IExternalClient): Future

Send a message to an external user.

Inheritors

InternalClient

class InternalClient : IInternalClient

Represents the own user.