Optional
isIndicates whether the user is an admin.
Optional
userThe optional user ID associated with this context.
Optional
userThe optional user name associated with this context.
Adds the websocket from this context to the specified group.
The name of the group to add the context to.
Emits an event with the specified parameters to the caller.
The method name to call.
The parameters to pass with the method call.
Emits an event to a specified group.
The name of the group to emit the event to.
The method name to be called on the group.
Additional parameters to be passed to the method.
Iterates over a specified group and executes a callback function for each context.
The name of the group to iterate over.
The callback function to be executed for each context.
Removes the websocket from this context from the specified group.
The name of the group to remove the context from.
Represents the context for a WebSocket connection, extending the capabilities of a GroupEmitter. Provides methods for managing group memberships and emitting events to groups.