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; }
internal HttpListenerWebSocketContext GetWebSocketContext(string protocol) { _websocketContext = new HttpListenerWebSocketContext(this, protocol); return(_websocketContext); }