class InternalClient : IInternalClient
Represents the own user.
companion object Companion : KLogging
Logging companion |
InternalClient(peer: PeerDHT, clientService: ClientService, sessionId: String)
Represents the own user. |
val clientService: ClientService
the ClientService |
|
val peer: PeerDHT
the TomP2P peer object |
|
val sessionId: String
the user's session ID |
fun equals(other: Any?): Boolean
equals |
|
fun hashCode(): Int
hashcode |
|
fun onReceiveMessage(emitter: (IExternalClient, ClientMessage) -> Unit): Unit
Register a listener that handles messages for this user |
|
fun sendMessage(type: String, messageBody: String, recipient: IExternalClient): Future
Send a message to an external user. |
|
fun toString(): String |