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

IClientService

interface IClientService

Connection to the P2P network

Functions

addClient

abstract fun addClient(sessionId: String): Pair<IInternalClient, Future>

Add a new user.

addDirectMessageListener

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

Add a direct message listener. See InternalClient.onReceiveMessage

findClient

abstract fun findClient(sessionId: String): GetFuture<IExternalClient>

Find another user

removeClient

abstract fun removeClient(client: IInternalClient): Future

Remove a user.

Inheritors

ClientService

class ClientService : IClientService

Connection to the P2P network.