ConnectAsync() public method

public ConnectAsync ( string serverAddress, string applicationName ) : IObservable
serverAddress string
applicationName string
return IObservable
Example #1
0
        public static void Initialize(TestContext cx)
        {
            Peer = new ObservablePhotonPeer(ExitGames.Client.Photon.ConnectionProtocol.Tcp)
            {
                Timeout = TimeSpan.FromSeconds(5)
            };
            var task = Peer.ConnectAsync("127.0.0.1:4530", "ServerApp");

            task.Wait(); // wait for timeout seconds...
        }