Supports RFC 6455

This commit is contained in:
sta
2012-07-31 10:36:52 +09:00
parent fc6ee2db12
commit 118e0015d5
63 changed files with 2857 additions and 646 deletions

35
Example1/Program.cs Normal file
View File

@@ -0,0 +1,35 @@
using System;
using System.Threading;
namespace Example
{
public class Program
{
public static void Main(string[] args)
{
//using (AudioStreamer streamer = new AudioStreamer("ws://localhost:3000/socket"))
using (AudioStreamer streamer = new AudioStreamer("ws://agektmr.node-ninja.com:3000/socket"))
{
streamer.Connect();
Thread.Sleep(500);
Console.WriteLine("\nType \"exit\" to exit.\n");
string data;
while (true)
{
Thread.Sleep(500);
Console.Write("> ");
data = Console.ReadLine();
if (data == "exit")
{
break;
}
streamer.Write(data);
}
}
}
}
}