Ejemplo n.º 1
0
 /// <summary>
 /// 关闭指定客户端连接
 /// </summary>
 /// <param name="theConnection">指定的客户端连接</param>
 public void CloseConnection(WebSocketConnection theConnection)
 {
     theConnection.Close();
 }
Ejemplo n.º 2
0
 private void AddConnection(WebSocketConnection theConnection)
 {
     _connectionList[theConnection.ConnectionId] = theConnection;
 }