Class Sockets
Constructors
constructor
-
Parameters
- options: SocketsOptions
Returns Sockets
Methods
all
-
Returns Map<string, SocketConnection>
A map of all socket connections
close
-
Close a socket connection
Parameters
- id: string
The ID of the connection to close
Returns Promise<void>
- id: string
createWebSocket
createWebTransport
get
-
Get a socket connection
Parameters
- id: string
The ID of the connection to get
Returns SocketConnection | undefined
The socket connection
- id: string
Get all socket connections