mc_core

Function spawn_websocket_server

Source
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 on
  • clients - collection of all connected clients
  • interface - WebSocket interface implementation