encodePacket.d.ts 298 B

123
  1. import { Packet, RawData } from "./commons.js";
  2. export 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;