new RCONClient(options)
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
The connection parameters.
|
Extends
- EventEmitter
Members
-
connectionStatusstring
-
-
hoststring
-
-
logsLogManager
-
-
mapsMapManager
-
-
passwordstring
-
-
playersPlayerManager
-
-
poolPoolManager
-
-
portnumber
-
-
serverServerManager
-
-
sessionSessionManager
-
Methods
-
disconnect()
-
Forcibly disconnects the client and shuts down all active network connections.
-
asyncfetchCommandInformation(){Promise.<RCONCommandInformation>}
-
Gets information about a particular RCON command.
Returns:
Type Description Promise.<RCONCommandInformation> -
asyncfetchRCONCommands(){Promise.<(Object|string)>}
-
Retrieves list of RCON commands.
Returns:
Type Description Promise.<(Object|string)> -
asyncinit(options){Promise.<void>}
-
Initializes the RCON pool.
Name Type Description optionsObject The pool parameters.
Name Type Default Description connectionsCountnumber 2 optional The number of RCON connections to maintain.
Returns:
Type Description Promise.<void> -
asyncsend(options){Promise.<ResponseMessage>}
-
Sends an RCON message.
Name Type Description optionsObject The message options.
Name Type Description namestring Name of the command.
contentBodyObject optional The main content of the message.
Returns:
Type Description Promise.<ResponseMessage>