UNPKG

programming-game

Version:

The client for programming game, an mmorpg that you interact with entirely through code.

17 lines (16 loc) 460 B
import { OnTick } from "./types"; import { OnEvent } from "./base-client"; type ConnectProps = { credentials: { id: string; key: string; }; onTick: OnTick; onEvent?: OnEvent; /** * Controls how often onTick is called when there's no new data from the server. */ tickInterval?: number; }; export declare const connect: ({ credentials, onTick, onEvent, tickInterval, }: ConnectProps) => (() => void); export {};