/// <inheritdoc /> public void Unsubscribe(IWebSocketClientHandler clientHandler) { if (_webSocketClientList.Contains(clientHandler)) { _webSocketClientList.Remove(clientHandler); } }
public WebSocketHandler(IDatabase database, ILogger logger, IWebSocketClientHandler webSocketClientHandler) { _database = database; _logger = logger; _webSocketClientHandler = webSocketClientHandler; }
public void SetWebSocketClientHandler(IWebSocketClientHandler webSocketClientHandler) { _webSocketClientHandler = webSocketClientHandler; }
/// <inheritdoc /> public void Subscribe(IWebSocketClientHandler clientHandler) { _webSocketClientList.Add(clientHandler); }