Constructor
new RCONClient(options)
Parameters:
| Name | Type | Description | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object
|
The connection parameters.
|
Extends
- EventEmitter
Members
host :string
Type:
-
string
password :string
Type:
-
string
port :number
Type:
-
number
Methods
disconnect()
Forcibly disconnects the client and shuts down all active network connections.
(async) init(options) → {Promise.<void>}
Initializes the RCON pool.
Parameters:
| Name | Type | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object
|
The pool parameters.
|
Returns:
- Type:
-
Promise.<void>
(async) send(options) → {Promise.<ResponseMessage>}
Sends an RCON message.
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object
|
The message options.
|
Returns:
- Type:
-
Promise.<ResponseMessage>