Can connections of this server use the chat system?
Shorthand for api.config.servers[this.type]
Methods described by the server to apply to each connection (like connection.setHeader for web connections)
Should we log every new connection?
Should we log when a connection disconnects/exits?
Should every new connection of this server type receive the welcome message (defined in locales, actionhero.welcomeMessage)
The name & type of the server.
What connection verbs can connections of this type use?
this.buildConnection({
rawConnection: {
req: req,
res: res,
params: {},
method: method,
cookies: cookies,
responseHeaders: responseHeaders,
responseHttpCode: responseHttpCode,
parsedURL: parsedURL
},
id: fingerprint + '-' + uuid.v4(),
fingerprint: fingerprint,
remoteAddress: remoteIP,
remotePort: remotePort
})
Enumerate the connections for this server type on this server.
Log a message from this server type. A wrapper around log() with a server prefix.
When a connection has called an Action command, and all properties are set. Connection should have params.action set at least.
on(event: 'actionComplete', cb: (data: object) => void): this;
When a connection has called an File command, and all properties are set. Connection should have params.file set at least. Will eventually call Actionhero.Server#sendFile.
Generated using TypeDoc
attributes of the server