Skip to main content

Module event

Module event 

Source
Expand description

Deprecated import since 0.3.0-alpha-2, use Event in the crate root instead. Defines the events that could be sent or received.

Enumsยง

CloseReason
A CloseReason is the payload of the Event::Close and specifies the reason for why it was fired. These are aligned with the official Socket.IO disconnect reasons, see https://socket.io/docs/v4/client-socket-instance/#disconnect
Event
An Event in socket.io could either (Message, Error) or custom.