internal bool TryGetServiceHost(string servicePath, out IWebSocketServiceHost serviceHost)
 {
     servicePath = HttpUtility.UrlDecode (servicePath).TrimEndSlash ();
       lock (_sync)
       {
     return _serviceHosts.TryGetValue (servicePath, out serviceHost);
       }
 }
        internal void Add(string servicePath, IWebSocketServiceHost serviceHost)
        {
            servicePath = HttpUtility.UrlDecode (servicePath).TrimEndSlash ();
              lock (_sync)
              {
            IWebSocketServiceHost host;
            if (_serviceHosts.TryGetValue (servicePath, out host))
            {
              _logger.Error (
            "The WebSocket service with the specified path already exists.\npath: " + servicePath);
              return;
            }

            _serviceHosts.Add (servicePath, serviceHost);
              }
        }