Event
@auvious/common / Exports / Event
Class: Event<P>
Represents the format of the events send to and received from the server.
Type parameters
Name | Type |
---|---|
P | any |
Table of contents
Constructors
Properties
Accessors
Methods
Constructors
constructor
• new Event<P
>(args?
)
Type parameters
Name | Type |
---|---|
P | any |
Parameters
Name | Type |
---|---|
args | any |
Properties
_payload
• Private
_payload: any
_raw
• Private
_raw: any
Accessors
error
• get
error(): boolean
Returns
boolean
id
• get
id(): string
Returns
string
message
• get
message(): any
Returns
any
payload
• get
payload(): P
Returns
P
payloadSerialized
• get
payloadSerialized(): string
Returns
string
qos
• get
qos(): string
Returns
string
senderId
• get
senderId(): string
Returns
string
sentAt
• get
sentAt(): number
Returns
number
topic
• get
topic(): string
Returns
string
Methods
toString
▸ toString(): string
Returns
string