예제 #1
0
        protected void QueueMessage(object message)
        {
            string json = JsonConvert.SerializeObject(message);

            if (_logLevel >= LogMessageSeverity.Debug)
            {
                RaiseOnLog(LogMessageSeverity.Debug, $"Out: " + json);
            }
            _engine.QueueMessage(json);
        }
예제 #2
0
        protected void QueueMessage(IWebSocketMessage message)
        {
            string json = JsonConvert.SerializeObject(new WebSocketMessage(message));

            if (Logger.Level >= LogSeverity.Debug)
            {
                Logger.Debug($"Out: {json}");
            }
            _engine.QueueMessage(json);
        }
예제 #3
0
        protected void QueueMessage(IWebSocketMessage message)
        {
            string json = JsonConvert.SerializeObject(new WebSocketMessage(message));

            _engine.QueueMessage(json);
        }