Esempio n. 1
0
 internal void PrintDetails()
 {
     if (GS.TraceMessages)
     {
         _gSPlatform.DebugMsg("_stopped:" + _stopped + " state:" + _WebSocketClient.State + " _pendingCount:" + _pendingRequests.Count);
     }
 }
Esempio n. 2
0
        internal GSConnection(GSInstance gs, IGSPlatform gsPlatform, String currentUrl)
        {
            this._gs         = gs;
            this._gSPlatform = gsPlatform;
            url = currentUrl;

            mustConnectBy = DateTime.Now.AddMilliseconds(gs.HandshakeOffset).Ticks;

#if DEBUG
            if (GSInstance.customUrlBase.Length <= 0)
#endif
            {
                if (url.IndexOf('?') == -1)
                {
                    url += "?deviceOS=" + gsPlatform.DeviceOS;
                    url += "&deviceID=" + gsPlatform.DeviceId;
                    url += "&SDK=" + gsPlatform.SDK;
                }
            }

            _gSPlatform.DebugMsg("Connecting to:" + url);

            EnsureConnected();
        }