Module socket

Source
Expand description

A Socket represents a client connected to a namespace. The socket struct itself should not be used directly, but through a SocketRef.

Structs§

RemoteSocket
A RemoteSocket is a Socket that is remotely connected on another server. It implements a subset of the Socket API.
Sid
A 128 bit session id type representing a base64 16 char string
Socket
A Socket represents a client connected to a namespace. It is used to send and receive messages from the client, join and leave rooms, etc. The socket struct itself should not be used directly, but through a SocketRef.

Enums§

DisconnectReason
All the possible reasons for a Socket to be disconnected from a namespace.
RemoteActionError
A error that can occur when emitting a message to a remote socket.