UNPKG

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