UNPKG

http2byond

Version:

Communication layer between node.js and BYOND game servers.

21 lines (20 loc) 487 B
export interface SocketConfig { host: string; port: number; timeout?: number; } export interface SingleRunConfiguration extends SocketConfig { topic: string; } export declare type TopicReturnType = string | number | null; export interface TopicConnection { send: (topic: string) => Promise<TopicReturnType>; destroy: () => void; queueLength: number; destroyed: boolean; } export interface ShimForm { ip: string; port: number; topic: string; }