Files
CHIEFSOFT\ameye 481c17499d first commit
2024-03-11 18:35:09 -04:00

16 lines
592 B
TypeScript

/// <reference types="node" />
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 declare type PacketType = "open" | "close" | "ping" | "pong" | "message" | "upgrade" | "noop" | "error";
export declare type RawData = string | Buffer | ArrayBuffer | ArrayBufferView | Blob;
export interface Packet {
type: PacketType;
options?: {
compress: boolean;
};
data?: RawData;
}
export declare type BinaryType = "nodebuffer" | "arraybuffer" | "blob";