Constructor
new ServerQ4S(serverOptions)
Constructor for the Client.
Parameters:
Name | Type | Description |
---|---|---|
serverOptions |
Object | Options to the client |
Extends
- EventEmitter
Methods
handshakeHandler(req, done)
Handler for handshake
Parameters:
Name | Type | Description |
---|---|---|
req |
ReqQ4S | |
done |
function |
(async) listen()
Start listening
sendAlert(sessionId)
Send an alert for the session Id
Parameters:
Name | Type | Description |
---|---|---|
sessionId |
Number |
sendRecovery(sessionId)
Send an recovery for the session Id
Parameters:
Name | Type | Description |
---|---|---|
sessionId |
Number |
tCPReqHandler(req, record, done)
Handler for TCP
Parameters:
Name | Type | Description |
---|---|---|
req |
ReqQ4S | |
record |
Session | |
done |
function |