@devgrid/netron
Version:
A powerful TypeScript library for building distributed systems with event bus, streaming capabilities, and remote object invocation. Features WebSocket-based bidirectional communication between Node.js and browser environments, service discovery, and type
15 lines (14 loc) • 520 B
TypeScript
export type PacketImpulse = 0 | 1;
export declare const TYPE_PING = 0;
export declare const TYPE_GET = 1;
export declare const TYPE_SET = 2;
export declare const TYPE_CALL = 3;
export declare const TYPE_TASK = 4;
export declare const TYPE_STREAM = 5;
export declare const TYPE_STREAM_ERROR = 6;
export type PacketType = typeof TYPE_GET | typeof TYPE_SET | typeof TYPE_CALL | typeof TYPE_TASK | typeof TYPE_STREAM | typeof TYPE_STREAM_ERROR;
export declare enum StreamType {
FIRST = 1,
MIDDLE = 2,
LAST = 3
}