WebSocketClientImpl class
- Implemented types
Constructors
- WebSocketClientImpl.new({required WebsocketSession session, required String id, required String routePath})
-
const
Properties
- activeRoom → String
-
no setteroverride
-
activeSessions
→ List<
String> -
no setteroverride
- clientId → String
-
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- previousRoom → String
-
no setteroverride
- routePath → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- session → WebsocketSession
-
final
Methods
-
broadcast(
String event, dynamic payload) → void -
broadcast to all connected sessions exclude sender
override
-
emit(
String event, dynamic payload) → void -
emit to self sender
override
-
getRoomMembers(
{String roomId = ''}) → List< String> -
override
-
isActiveSession(
{String sessionId = ''}) → bool -
override
-
joinRoom(
String roomId) → void -
leftRoom(
String roomId) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
to(
String clientId, String event, dynamic payload) → void -
emit to specific seesion id
override
-
toRoom(
String event, String room, dynamic payload) → void -
emit to room all users in room can see this message
exclude sender
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited