Files
dogs/node_modules/engine.io-parser/build/cjs/commons.d.ts
ChloeChen0423 7c63f2f07b 前端代码
2025-05-12 16:42:36 +09:00

15 lines
486 B
TypeScript

declare const PACKET_TYPES: any;
declare const PACKET_TYPES_REVERSE: any;
declare const ERROR_PACKET: Packet;
export { PACKET_TYPES, PACKET_TYPES_REVERSE, ERROR_PACKET };
export type PacketType = "open" | "close" | "ping" | "pong" | "message" | "upgrade" | "noop" | "error";
export type RawData = any;
export interface Packet {
type: PacketType;
options?: {
compress: boolean;
};
data?: RawData;
}
export type BinaryType = "nodebuffer" | "arraybuffer" | "blob";