Esempio n. 1
0
        private WebSocketSession(
            ISocketConnection connection,
            IMessagePipeline messagePipeline,
            bool disposeConnection)
        {
            _connection        = connection;
            _disposeConnection = disposeConnection;

            _keepAlive        = new KeepConnectionAliveJob(connection);
            _messageProcessor = new MessageProcessor(connection, messagePipeline, _pipe.Reader);
            _messageReceiver  = new MessageReceiver(connection, _pipe.Writer);
        }