Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

engine.io.d.ts 966B

12345678910111213141516171819202122232425262728
  1. import { Server, AttachOptions, ServerOptions } from "./server";
  2. import transports from "./transports/index";
  3. import * as parser from "engine.io-parser";
  4. export { Server, transports, listen, attach, parser };
  5. export { AttachOptions, ServerOptions } from "./server";
  6. export { uServer } from "./userver";
  7. export { Socket } from "./socket";
  8. export { Transport } from "./transport";
  9. export declare const protocol = 4;
  10. /**
  11. * Creates an http.Server exclusively used for WS upgrades.
  12. *
  13. * @param {Number} port
  14. * @param {Function} callback
  15. * @param {Object} options
  16. * @return {Server} websocket.io server
  17. * @api public
  18. */
  19. declare function listen(port: any, options: AttachOptions & ServerOptions, fn: any): Server;
  20. /**
  21. * Captures upgrade requests for a http.Server.
  22. *
  23. * @param {http.Server} server
  24. * @param {Object} options
  25. * @return {Server} engine server
  26. * @api public
  27. */
  28. declare function attach(server: any, options: AttachOptions & ServerOptions): Server;