GameNamespace class
Methods
-
addConnected(SocketId id)
→ void
-
-
broadcast(Message message, {Set<String>? rooms, SocketId? exclude})
→ void
-
Broadcast message to one or many rooms.
override
-
broadcastList(List<Message> list, String room, {SocketId? exclude})
→ void
-
Broadcast a list of messages to a room.
override
-
broadcastRoomEvent(String event, String room, {SocketId? exclude, dynamic data})
→ void
-
Broadcast event to room.
data as either a List
override
-
connectClient(ServerClient client)
→ GameClient
-
-
emit(String event, [dynamic data])
→ void
-
override
-
except(String room)
→ Namespace
-
Excludes a room when emitting.
-
getClient(SocketId id)
→ GameClient?
-
override
-
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
-
remove(GameClient socket)
→ void
-
-
removeConnected(SocketId id)
→ void
-
-
to(String room)
→ Namespace
-
Targets a room when emitting.
-
toString()
→ String
-
A string representation of this object.
inherited