private string CreateURI() { var queryString = string.Format("{0}={1}&{2}={3}&{4}={5}", PID_KEY, Process.GetCurrentProcess().Id.ToString(), SDK_VERSION_KEY, GameLiftServerAPI.GetSdkVersion().Result, FLAVOR_KEY, FLAVOR ); var endpoint = string.Format("ws://{0}:{1}?{2}", HOSTNAME, PORT, queryString); return(endpoint); }
IO.Options CreateDefaultOptions() { IO.Options options = new IO.Options(); options.QueryString = String.Format("{0}={1}&{2}={3}&{4}={5}", PID_KEY, Process.GetCurrentProcess().Id.ToString(), SDK_VERSION_KEY, GameLiftServerAPI.GetSdkVersion().Result, FLAVOR_KEY, FLAVOR ); options.AutoConnect = false; options.ForceNew = true; options.Transports = System.Collections.Immutable.ImmutableList.Create("websocket"); return(options); }
IO.Options CreateDefaultOptions() { IO.Options options = new IO.Options(); options.QueryString = String.Format("{0}={1}&{2}={3}&{4}={5}", PID_KEY, Process.GetCurrentProcess().Id.ToString(), SDK_VERSION_KEY, GameLiftServerAPI.GetSdkVersion().Result, FLAVOR_KEY, FLAVOR ); options.AutoConnect = false; options.Transports = new List <string>() { "websocket" }; return(options); }