public Peer(PeerPool _pool, WebSocket _ws) { ws = _ws; pool = _pool; ws.OnOpen += (_, __) => OnOpen(); ws.OnClose += (_, e) => OnClose(e); ws.OnMessage += (_, e) => OnMessage(e); }
public NodeBase() { peers = new PeerPool(this); }
public Peer(PeerPool _pool) { pool = _pool; }