Instantiate a new RCONClient instance
Host for this RCONClient
Password used to login
Port to use, defaults to 25575
Private
authRequest ID of the login packet
Whether or not this client has been authenticated
Whether or not this client is connected
Private
handlerPacket handler
Host this client is linked to
Private
passwordPassword used to login
Port this client is linked to
Private
socketTCP socket
Connect to the Minecraft server
The RCONClient
Disconnect the client and end the connection
Rest
...args: Parameters<RCONClientEvents[E]>Execute a command on the server
This method isn't deprecated but it's
way better to use RCONClient#executeCommandAsync
because it handles fragmentation unlike this one
The request ID (use it to catch the response)
Command to execute on the server
Execute a command and asynchronously get its output
This method handles everything (including fragmentation) so you don't have to worry about it.
A promise that resolves with the command's output
Command to execute
Optional
timeout: numberTimeout before the promise is rejected (prevents promise from indefinitely being on pending if something fails), in milliseconds
Private
handleHandle incoming messages
Optional
event: EPrivate
throwThrow an error
Error to throw
Optional
isRCON: booleanWhether or not this error comes from RCON
Private
writeWrite a message to the server
Message to send
Generated using TypeDoc
RCONClient Class
See
https://wiki.vg/RCON for more information