using System;
using System.Threading;

namespace Example1
{
  public class Program
  {
    public static void Main (string [] args)
    {
      using (var streamer = new AudioStreamer ("ws://agektmr.node-ninja.com:3000/socket"))
      //using (var streamer = new AudioStreamer ("ws://localhost:3000/socket"))
      {
        string name;
        do {
          Console.Write ("Input your name> ");
          name = Console.ReadLine ();
        }
        while (name.Length == 0);

        streamer.Connect (name);
        Console.WriteLine ("\nType \"exit\" to exit.\n");
        while (true) {
          Thread.Sleep (1000);
          Console.Write ("> ");
          var msg = Console.ReadLine ();
          if (msg == "exit")
            break;

          streamer.Write (msg);
        }
      }
    }
  }
}

using System;
using System.Threading;

namespace Example1
{
  public class Program
  {
    public static void Main (string [] args)
    {
      using (var streamer = new AudioStreamer ("ws://agektmr.node-ninja.com:3000/socket"))
      //using (var streamer = new AudioStreamer ("ws://localhost:3000/socket"))
      {
        string name;
        do {
          Console.Write ("Input your name> ");
          name = Console.ReadLine ();
        }
        while (name.Length == 0);

        streamer.Connect (name);

        Console.WriteLine ("\nType 'exit' to exit.\n");
        while (true) {
          Thread.Sleep (1000);
          Console.Write ("> ");
          var msg = Console.ReadLine ();
          if (msg == "exit")
            break;

          streamer.Write (msg);
        }
      }
    }
  }
}

Fix a few for Example1
Fix a few for Example1
