encodePacket.browser.d.ts 332 B

1234
  1. import { Packet, RawData } from "./commons.js";
  2. declare const encodePacket: ({ type, data }: Packet, supportsBinary: boolean, callback: (encodedPacket: RawData) => void) => void;
  3. export declare function encodePacketToBinary(packet: Packet, callback: (encodedPacket: RawData) => void): void | Promise<void>;
  4. export { encodePacket };