Skip to content

Instantly share code, notes, and snippets.

@hitbtc-com
Created April 29, 2014 09:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hitbtc-com/11395306 to your computer and use it in GitHub Desktop.
Save hitbtc-com/11395306 to your computer and use it in GitHub Desktop.
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