WSServer class

Constructors

WSServer({required ServerInfo serverInfo})

Properties

clientCount int
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
server HttpServer?
getter/setter pairinherited
serverInfo ServerInfo
final

Methods

broadcast(WSMessage message) → void
disconnect(WebSocket webSocket) → void
fileUrl(String filePath) Future<String?>
getClientInfo(WebSocket webSocket) ClientInfo?
getWebSocket(ClientInfo clientInfo) WebSocket?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(WebSocket webSocket, WSMessage message) → void
start(WSConnectionType type, {ServerListener? listener}) → void
stop() → void
toString() String
A string representation of this object.
inherited

Operators

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

Constants

tag → const String