Namespace class abstract

Inheritance
Implementers

Constructors

Namespace(String name, GameSocketServer server)

Properties

adapter ↔ Adapter
latefinal
connectedSockets Set<SocketId>
no setter
hashCode int
The hash code for this object.
no setterinherited
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
server GameSocketServer
final

Methods

broadcast(Message message, {Set<String>? rooms, SocketId? exclude}) → void
Broadcast message to one or many rooms.
broadcastList(List<Message> list, String room, {SocketId? exclude}) → void
Broadcast a list of messages to a room.
broadcastRoomEvent(String event, String room, {SocketId? exclude, dynamic data}) → void
Broadcast event to room.
emit(String event, [dynamic data]) → void
inherited
getClient(SocketId id) GameClient?
hasListeners(String event) bool
inherited
listeners(String event) List<EventHandler>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
off(String event, [EventHandler? handler]) → void
inherited
offAll() → void
inherited
on(String event, EventHandler handler) → void
inherited
once(String event, EventHandler handler) → void
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited