Skip to main content

@auvious/common / Event

Class: Event<P>

Represents the format of the events send to and received from the server.

Type parameters​

NameType
Pany

Table of contents​

Constructors​

Properties​

Accessors​

Methods​

Constructors​

constructor​

• new Event<P>(args?): Event<P>

Type parameters​

NameType
Pany

Parameters​

NameType
argsany

Returns​

Event<P>

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