예제 #1
0
        public void Foo()
        {
            var connection = new WebSocketConnection(new Uri("wss://api.bitfinex.com/ws/2"), null, new HttpOptions());

            connection.OnReceived((data, state) => Connection_Received(data), null);
            connection.StartAsync().Wait();
            Thread.Sleep(10 * 1000);
        }