dwrtc / ch.hsr.dsl.dwrtc.signaling / ClientMessage

ClientMessage

class ClientMessage : Message

A Message type that's sent and received over the P2P network.

senderSessionId and recipientSessionId are optional. Lower layers may reset these properties before they're sent onto the P2P layer.

Constructors

<init>

ClientMessage(type: String, senderSessionId: String?, recipientSessionId: String?, messageBody: String)

A Message type that's sent and received over the P2P network.

Properties

messageBody

val messageBody: String

the message's (free-form) body

recipientSessionId

var recipientSessionId: String?

the recipient's session ID

senderSessionId

var senderSessionId: String?

the sender's session ID.

Inherited Properties

type

val type: String

the type of the message. Enables casting to a specific subclass.