public void Connect() { User = new User(); Client = new WebsocketClient(); Client.OnSpontaneousReceive += ClientReceive; if (!Client.Initialize()) { throw new Exception("Server unreachable"); } }
public void Connect() { User = new User(); Client = new WebsocketClient(); Client.OnSpontaneousReceive += ClientReceive; if (!Client.Initialize()) { throw new Exception("Server unreachable"); } }