multyx
Version:
Framework designed to simplify the creation of multiplayer browser games by addressing the complexities of managing server-client communication, shared state, and input handling
17 lines • 462 B
TypeScript
import { Update } from "./update";
export default class Message {
name: string;
data: any;
time: number;
native: boolean;
/**
* Constructor for creating messages to send to client
* @param name
* @param data
*/
private constructor();
static Native(updates: Update[]): string;
static Create(name: string, data: any): string;
static Parse(str: string): Message | null;
}
//# sourceMappingURL=message.d.ts.map