Created
April 29, 2014 09:34
-
-
Save hitbtc-com/11395306 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using WebSocketSharp; | |
// Install WebSocketSharp https://github.com/sta/websocket-sharp (e.g. via NuGet) | |
namespace Hitbtc | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
using (var ws = new WebSocket("ws://api.hitbtc.com")) | |
{ | |
ws.OnMessage += (sender, e) => | |
Console.WriteLine(e.Data); | |
ws.Connect(); | |
Console.ReadKey(true); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment