public void Ping() { var ping = new Packets.Ping(); var pingStr = Packet.WriteToMessage(ping); try { foreach (var client in _server.Clients) { client.Send(pingStr); } } catch (Exception e) { Program.Logger.Warn("ping failed", e); } }
public void Ping() { var ping = new Packets.Ping(); var pingStr = Packet.WriteToMessage(ping); try { foreach (var host in _server.WebSocketServices.Hosts) { host.Sessions.Broadcast(pingStr); } } catch (Exception e) { Program.Logger.Warn("ping failed", e); } }