Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Events

CONNECT

CONNECT = "connect"

Is fired on manual connect.

DISCONNECT

DISCONNECT = "disconnect"

Is fired on manual disconnect.

ERROR

ERROR = "error"

Is fired in case of error.

The passed data is of type PChatError.

HISTORY_LOAD

HISTORY_LOAD = "history_load"

Is fired when older history is loaded.

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

MESSAGE

MESSAGE = "message"

Is fired on any new message.

The passed data is of type MessageType.

RECONNECT

RECONNECT = "reconnect"

Is fired on successful reconnect.

RECONNECTING

RECONNECTING = "reconnecting"

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