SocketEmitter class

Constructors

SocketEmitter({String? sender, String? roomId})

Properties

hashCode int
The hash code for this object.
no setterinherited
roomId String?
room id to sent message
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sender String?
sender socket id
final

Methods

emit(String event, dynamic message, {List<String> exclude = const <String>[]}) → void
set message to everyone in the room
emitExceptSender(String event, dynamic message) → void
set message except the sender
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
room(dynamic id) SocketEmitter
set room to sent message
toString() String
A string representation of this object.
inherited

Operators

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