// This gets called by BaseHttpServer and gives us an opportunity to set things on the WebSocket handler before we turn it on
 public void WebSocketHandlerCallback(string path, WebSocketHttpServerHandler handler)
 {
     SubscribeToEvents(handler);
     handler.SetChunksize(8192);
     handler.NoDelay_TCP_Nagle = true;
     handler.HandshakeAndUpgrade();
 }
 public void WebSocketHandler(string method, WebSocketHttpServerHandler handler)
 {
     m_Handler                     = handler;
     m_Handler.OnClose            += Handler_OnClose;
     m_Handler.OnText             += Handler_OnText;
     m_Handler.OnUpgradeCompleted += Handler_OnUpgradeCompleted;
     m_Handler.OnData             += Handler_OnData;
     m_Handler.OnPing             += Handler_OnPing;
     m_Handler.OnPong             += Handler_OnPong;
     m_Handler.SetChunksize(8192);
     m_Handler.NoDelay_TCP_Nagle = true;
     m_Handler.HandshakeAndUpgrade();
 }