minestat-es
Version:
Promise-based Minecraft server status
12 lines (11 loc) • 446 B
TypeScript
import { AddressOpts, HostnameOpts, QueryProtocols, ServerInfo } from './types';
/**
* Open a TCP socket to query Minecraft server status.
*
* @param address An FQDN or IP address.
* @param port A TCP port number.
* @param timeout Connection timeout in milliseconds.
* @returns Server information.
*/
export declare function fetchServerInfo(options: HostnameOpts | AddressOpts): Promise<ServerInfo>;
export { QueryProtocols, ServerInfo };