internal void CallonUpdateConnection(ReverseProxyClient proxyClient) { //remove a client that has been disconnected try { if (!proxyClient.IsConnected) { lock (_clients) { for (int i = 0; i < _clients.Count; i++) { if (_clients[i].ConnectionId == proxyClient.ConnectionId) { _clients.RemoveAt(i); break; } } } } } catch { } try { if (OnUpdateConnection != null) { OnUpdateConnection(proxyClient); } } catch { } }
internal void CallonConnectionEstablished(ReverseProxyClient proxyClient) { try { if (OnConnectionEstablished != null) { OnConnectionEstablished(proxyClient); } } catch { } }