GetSocket class abstract

Constructors

GetSocket.fromRaw(WebSocket ws, Map<String, HashSet<GetSocket>> rooms, HashSet<GetSocket> sockets)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id int
no setter
length int
no setter
rawSocket WebSocket
no setter
rooms Map<String?, HashSet<GetSocket>>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sockets HashSet<GetSocket>
no setter

Methods

broadcast(Object message) → void
broadcastEvent(String event, Object data) → void
broadcastToRoom(String room, Object message) → void
close([int? status, String? reason]) → void
emit(String event, Object data) → void
emitToAll(String event, Object data) → void
emitToRoom(String event, String? room, Object message) → void
getSocketById(int id) GetSocket?
join(String? room) bool
leave(String room) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
on(String event, MessageSocket message) → void
onClose(CloseSocket fn) → void
onError(CloseSocket fn) → void
onMessage(MessageSocket fn) → void
onOpen(OpenSocket fn) → void
send(dynamic message) → void
sendToAll(Object message) → void
sendToRoom(String? room, Object message) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](String key) → dynamic
operator []=(String key, dynamic value) → void