コード例 #1
0
        public WebSocketSession(
            ISocketConnection connection,
            IMessagePipeline messagePipeline,
            bool disposeConnection)
        {
            _connection        = connection;
            _disposeConnection = disposeConnection;

            _keepAlive = new KeepConnectionAliveJob(
                connection);

            _messageProcessor = new MessageProcessor(
                connection,
                messagePipeline,
                _pipe.Reader);

            _messageReciver = new MessageReceiver(
                connection,
                _pipe.Writer);
        }