engine.io-parser
Version:
Parser for the client for the realtime Engine
4 lines (3 loc) • 298 B
TypeScript
import { Packet, RawData } from "./commons.js";
export declare const encodePacket: ({ type, data }: Packet, supportsBinary: boolean, callback: (encodedPacket: RawData) => void) => void;
export declare function encodePacketToBinary(packet: Packet, callback: (encodedPacket: RawData) => void): void;