interface IClientService
Connection to the P2P network
abstract fun addClient(sessionId: String): Pair<IInternalClient, Future>
Add a new user. |
|
abstract fun addDirectMessageListener(sessionId: String, emitter: (IExternalClient, ClientMessage) -> Unit): Unit
Add a direct message listener. See InternalClient.onReceiveMessage |
|
abstract fun findClient(sessionId: String): GetFuture<IExternalClient>
Find another user |
|
abstract fun removeClient(client: IInternalClient): Future
Remove a user. |
class ClientService : IClientService
Connection to the P2P network. |