Enumeration Events

Events

CLEAR_ROOM: "clear_room"

Is fired on clear room.

The passed data is of type MessageType. _

CONNECT: "connect"

Is fired on manual connect. _

DISCONNECT: "disconnect"

Is fired on manual disconnect. _

ERROR: "error"

Is fired in case of error.

The passed data is of type PChatError. _

HISTORY_LOAD: "history_load"

Is fired when older history is loaded.

The passed data is list of loaded messages of type MessageType. _

MESSAGE: "message"

Is fired on any new message.

The passed data is of type MessageType. _

MESSAGE_DELETE: "message_delete"

Is fired when a message is soft-deleted.

The passed data is of type MessageType. _

POLL: "poll"

Is fired on poll.

The passed data is of type ActivePolls. _

REACTION: "reaction"

Is fired on reaction.

The passed data is of type ReactionType. _

REACTIONS_STATS: "reaction_stats"

Is fired on reaction stats.

The passed data is list of loaded messages of type []. _

RECONNECT: "reconnect"

Is fired on successful reconnect. _

RECONNECTING: "reconnecting"

Is fired when connection is broken and reconnect process has started. _

VOTE: "vote"

Is fired on vote.

The passed data is of type OptionType. _