new PoolManager(options)
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
The configuration options for the pool manager.
|
Members
-
clientRCONClient
-
-
connectionsArray.<RCONConnection>
-
-
connectionsCountnumber
-
-
dispatchDelayMsnumber
-
-
isDestroyedboolean
-
-
isProcessingQueueboolean
-
-
messageQueueArray.<{}>
-
Methods
-
disconnect()
-
Shuts down all active connections and prevents future reconnections.
-
asyncinit(){Promise.<void>}
-
Initializes the connection pool by creating the specified number of connections.
Returns:
Type Description Promise.<void> -
asyncsend(options){Promise.<ResponseMessage>}
-
Queues an RCON message to be sent when capacity is available.
Name Type Description optionsObject The message payload.
Name Type Description namestring Name of the command.
contentBodyObject optional The main content of the message.
Returns:
Type Description Promise.<ResponseMessage> The response from the RCON server.