protected void QueueMessage(object message) { string json = JsonConvert.SerializeObject(message); if (_logLevel >= LogMessageSeverity.Debug) { RaiseOnLog(LogMessageSeverity.Debug, $"Out: " + json); } _engine.QueueMessage(json); }
protected void QueueMessage(IWebSocketMessage message) { string json = JsonConvert.SerializeObject(new WebSocketMessage(message)); if (Logger.Level >= LogSeverity.Debug) { Logger.Debug($"Out: {json}"); } _engine.QueueMessage(json); }
protected void QueueMessage(IWebSocketMessage message) { string json = JsonConvert.SerializeObject(new WebSocketMessage(message)); _engine.QueueMessage(json); }