messageSocketServer.d.ts 759 B

1234567891011121314151617181920
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. /// <reference types="node" />
  8. import { Server as HttpServer } from 'http';
  9. import { Server as HttpsServer } from 'https';
  10. declare function parseMessage(data: string, binary: any): any;
  11. declare type Server = HttpServer | HttpsServer;
  12. declare function attachToServer(server: Server, path: string): {
  13. broadcast: (method: string, params?: Record<string, any> | undefined) => void;
  14. };
  15. declare const _default: {
  16. attachToServer: typeof attachToServer;
  17. parseMessage: typeof parseMessage;
  18. };
  19. export default _default;
  20. //# sourceMappingURL=messageSocketServer.d.ts.map