Ejemplo n.º 1
0
 internal WebSocket(HttpListenerWebSocketContext context)
     : this()
 {
     _uri = Ext.ToUri(context.Path);
     _context = context;
     _httpContext = context.BaseContext;
     _wsStream = context.Stream;
     _endPoint = context.ServerEndPoint;
     _isClient = false;
     _isSecure = context.IsSecureConnection;
 }
Ejemplo n.º 2
0
        internal HttpListenerWebSocketContext GetWebSocketContext(string protocol)
        {
            _websocketContext = new HttpListenerWebSocketContext(this, protocol);

            return(_websocketContext);
        }