AudioWebSocketServer class

A robust WebSocket server implementation for handling real-time audio client connections.

Constructors

AudioWebSocketServer({int port = 8081, required void audioClientListCallBack(List<WebSocket> clients)})
Constructor for AudioWebSocketServer that initializes the server with a port and a command callback function.

Properties

audioClientListCallBack → void Function(List<WebSocket> clients)
final
hashCode int
The hash code for this object.
no setterinherited
port int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getClients() List<WebSocket>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start() Future<void>
Starts the WebSocket server and begins listening for connections.
stop() Future<void>
Stops the WebSocket server and disconnects all clients.
toString() String
A string representation of this object.
inherited

Operators

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