addWebSocketInfo method

void addWebSocketInfo(
  1. String socketId,
  2. WebSocket ws
)

add new websocket to active connections this is used when new ws connection is connected

Implementation

void addWebSocketInfo(String socketId, WebSocket ws) {
  _socketConnections[socketId] = WebSocketInfo(
    socketId: socketId,
    websocket: ws,
  );
}