dwrtc / ch.hsr.dsl.dwrtc.signaling / ExternalClient

ExternalClient

class ExternalClient : IExternalClient

Represents another user.

Constructors

<init>

ExternalClient(sessionId: String, peerAddress: PeerAddress, peer: PeerDHT)

Represents another user.

Properties

peer

val peer: PeerDHT

the peer to use for all operations

peerAddress

val peerAddress: PeerAddress

the user's peer address

sessionId

val sessionId: String

the user's session ID

Functions

equals

fun equals(other: Any?): Boolean

equals

hashCode

fun hashCode(): Int

hashcode

sendMessage

internal fun sendMessage(type: String, messageBody: String, senderSessionId: String): Future

Send a message to this user

toString

fun toString(): String