public int Connect(string address, int port, object settings, bool websocket, out byte error) { NetworkTransport.Init(); int hostId = RelayTransport.AddHost((HostTopology)settings, false); return(RelayTransport.Connect(hostId, address, port, 0, out error)); }
public void Connect(string address, int port, object settings, out byte error) { serverHostId = RelayTransport.AddHost(new HostTopology((ConnectionConfig)settings, 1), false); serverConnectionId = RelayTransport.Connect(serverHostId, address, port, 0, out error); }