예제 #1
0
        private void websocket_Opened(object sender, EventArgs e)
        {
            Console.WriteLine("Connected!");
            this.websocket.Send("{\"action\":\"auth\",\"params\":\"918UvuvMbGGA5QTt0gNgCLn46X_xnl6_ghwHoS\"}");
            this.websocket.Send("{\"action\":\"subscribe\",\"params\":\"XQ.BTC-USD\"}");

            IsConnected = true;
            OnWebSocketOpenedEvent?.Invoke();

            //new CallbackTimer( 100, FireWebSocketOpenedEvent );
        }
예제 #2
0
        private void websocket_Opened(object sender, EventArgs e)
        {
            FireOnTextInfoEvent($"{PGStatus.ClusterName} Web Socket Connected!");

            // send authorization request, will receive acknowledge
            // in PGClusterBase.HandleStatusMessage()
            webSocket.Send($@"{{""action"":""auth"",""params"":""{ApiKey}""}}");

            PGStatus.IsConnected = true;
            OnWebSocketOpenedEvent?.Invoke(PGStatus.ClusterName);
        }
예제 #3
0
        private void websocket_Opened(object sender, EventArgs e)
        {
            Console.WriteLine("Connected!");
            this.websocket.Send("{\"action\":\"auth\",\"params\":\"7Vab5kzOwQC3Sbpz_FJv13AEeM9po_RrC_TC96\"}");
            this.websocket.Send("{\"action\":\"subscribe\",\"params\":\"XA.BTC-USD\"}");

            IsConnected = true;
            OnWebSocketOpenedEvent?.Invoke();

            //new CallbackTimer( 100, FireWebSocketOpenedEvent );
        }