UNPKG

@servant/servant-discovery

Version:

Servant discovery library that can communicate with other servant processes.

13 lines (12 loc) 285 B
export declare enum CommandType { Hello = "SERVANT-CMD-HELLO", Ping = "SERVANT-CMD-PING", Data = "SERVANT-CMD-DATA", Close = "SERVANT-CMD-CLOSE" } export type Command = { from: string; to?: Array<string>; port: number; type: CommandType; };