public static Server Create(int port, string path, Action<Socket> OnSocket) { var wsserver = new Server(port, path); wsserver.OnSocket = OnSocket; return wsserver; }
public static Server Create(Reactor.Http.Server server, string path, Action<Socket> OnSocket) { var wsserver = new Server(server, path); wsserver.OnSocket = OnSocket; return wsserver; }
public static Server Create(int port, Action<Socket> OnSocket) { var wsserver = new Server(port, "/"); wsserver.OnSocket = OnSocket; return wsserver; }