pub async fn spawn_websocket_server<T: WebSocketInterface>(
port: usize,
clients: Arc<WebSocketClients>,
interface: Arc<T>,
)Expand description
Spawn a new WebSocket server.
ยงArguments
port- port to listen onclients- collection of all connected clientsinterface- WebSocket interface implementation