- Source:
Properties:
| Name | Type | Description |
|---|---|---|
connections |
Object | Dictionary of currently-established client connections. |
middleware |
Object | Dictionary of loaded middleware modules. |
globalMiddleware |
Array | Array of global middleware modules. |
allowedVerbs |
Array | Verbs the server will allow clients to send. |
Server connection handling.
Extends
Methods
(static) addMiddleware(data)
Add a middleware component to connection handling.
Parameters:
| Name | Type | Description |
|---|---|---|
data |
object | The middleware definition to add. |