示例#1
25
        public static Server Create(int port, string path, Action<Socket> OnSocket)
        {
            var wsserver = new Server(port, path);

            wsserver.OnSocket = OnSocket;

            return wsserver;
        }
示例#2
0
        public static Server Create(Reactor.Http.Server server, string path, Action<Socket> OnSocket)
        {
            var wsserver = new Server(server, path);

            wsserver.OnSocket = OnSocket;

            return wsserver;
        }
示例#3
0
        public static Server Create(int port, Action<Socket> OnSocket)
        {
            var wsserver = new Server(port, "/");

            wsserver.OnSocket = OnSocket;

            return wsserver;
        }