private void button1_Click(object sender, EventArgs e)
        {
            Console.WriteLine("Starting TestSocketIOClient Example...");

            //socket = new Client("http://192.168.207.86/"); // url to nodejs
            socket          = new Client("http://localhost:808/"); // url to nodejs
            socket.Opened  += SocketOpened;
            socket.Message += SocketMessage;
            socket.SocketConnectionClosed += SocketConnectionClosed;
            socket.Error += SocketError;

            // register for 'get_kinect' event with io server
            socket.On("get_kinect", (fn) =>
            {
                Console.WriteLine("\r\nget_kinect event...\r\n");
                Console.WriteLine("Emit KinectData object");

                // emit Json Serializable object, anonymous types, or strings
                KinectData newData = new KinectData()
                {
                    Foo = "foo", Bar = "bar"
                };
                socket.Emit("kinect_data", newData);
            });

            // make the socket.io connection
            try
            {
                socket.Connect();
            }
            catch (Exception exp)
            {
                System.Diagnostics.Debug.WriteLine(exp.Message);
            }
        }
        private void button2_Click(object sender, EventArgs e)
        {
            KinectData newData = new KinectData()
            {
                Foo = "foo", Bar = "bar"
            };

            socket.Emit("kinect_data", newData);
        }