Program.cs 465 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
using System;
using WebSocketSharp;
using WebSocketSharp.Server;
using Tobii.Research;

namespace GazeWebSocketServer
{
    public class Program
    {
        public static void Main(string[] args)
        {
            var wssv = new WebSocketServer("ws://localhost:8001");
13
            wssv.AddWebSocketService("/gaze", () => new GazeCoordinateBehavior());
14 15 16 17 18 19 20

            wssv.Start();
            Console.ReadKey(true);
            wssv.Stop();
        }
    }
}