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.

WSWrapper.d.ts 806B

12345678910111213141516171819202122232425
  1. /// <reference types="node" />
  2. /// <reference types="node" />
  3. import { EventEmitter } from 'events';
  4. interface WSWrapperOptions {
  5. perMessageDeflate: boolean;
  6. handshakeTimeout: number;
  7. protocolVersion: number;
  8. origin: string;
  9. maxPayload: number;
  10. followRedirects: boolean;
  11. maxRedirects: number;
  12. }
  13. export default class WSWrapper extends EventEmitter {
  14. static CONNECTING: number;
  15. static OPEN: number;
  16. static CLOSING: number;
  17. static CLOSED: number;
  18. private readonly ws;
  19. constructor(url: string, _protocols: string | string[] | WSWrapperOptions | undefined, _websocketOptions: WSWrapperOptions);
  20. get readyState(): number;
  21. close(code?: number, reason?: Buffer): void;
  22. send(message: string): void;
  23. }
  24. export {};
  25. //# sourceMappingURL=WSWrapper.d.ts.map