Constructor
new ClientQ4S(clientOptions)
Constructor for the Client.
Parameters:
Name | Type | Description |
---|---|---|
clientOptions |
Object | Options to the client |
Extends
- EventEmitter
Methods
close(req)
Finishes all communication.
Parameters:
Name | Type | Description |
---|---|---|
req |
ReQQ4S |
connect(ip, port)
Connects to the handshake Q4S server
Parameters:
Name | Type | Description |
---|---|---|
ip |
String | |
port |
Number |
(async) importClientOps(clientOptions)
Creates a session from the client options
Parameters:
Name | Type | Description |
---|---|---|
clientOptions |
Object |
startReady(Stage, delay)
Sends the Ready request for the passed stage
Parameters:
Name | Type | Description |
---|---|---|
Stage |
Number | |
delay |
Number |