Event

class Event<T : Any>(val type: String, val channel: String, val connectionId: Long?, val data: T)

Represents a generic event caught by PrivMX Endpoint.

Parameters

T

The type of data associated with the event

Constructors

Link copied to clipboard
constructor(type: String, channel: String, connectionId: Long?, data: T)

Properties

Link copied to clipboard

The event channel

Link copied to clipboard

ID of connection for this event

Link copied to clipboard
val data: T

The data payload associated with the event

Link copied to clipboard

Type of the event