@colyseus/core
Version:
Multiplayer Framework for Node.js.
15 lines (14 loc) • 645 B
TypeScript
import { Protocol } from '@colyseus/shared-types';
export declare const IpcProtocol: {
readonly SUCCESS: 0;
readonly ERROR: 1;
readonly TIMEOUT: 2;
};
export type IpcProtocol = typeof IpcProtocol[keyof typeof IpcProtocol];
export declare const getMessageBytes: {
10: (reconnectionToken: string, serializerId: string, handshake?: Uint8Array) => Buffer<ArrayBuffer>;
11: (code: number, message?: string) => Buffer<ArrayBuffer>;
14: (bytes: number[]) => number[];
18: () => Buffer<ArrayBuffer>;
raw: (code: Protocol, type: string | number, message?: any, rawMessage?: Uint8Array | Buffer) => Buffer<ArrayBuffer>;
};