WebSocket
server/websocket
Specifies the configuration for WebSocket support.
Properties
Name | Type | Constraints | Description |
---|---|---|---|
worker_threads | worker_threads | ||
timeouts | timeouts |
server/websocket/worker_threads
The number of available WebSocket worker threads.
Properties
Name | Type | Constraints | Description |
---|---|---|---|
max | number | Minimum: 0 Maximum: unlimited Default value: 0 | The maximum number of threads which will be used used to proxy WebSocket connections through the gateway. A value of zero will cause WebSockets to be blocked. Each WebSocket connection will require two worker threads. If more than the max value are in use, the daemon will immediately close the WebSocket even if the WebSocket upgrade request to the application succeeded. The WebSocket threads operate independently from the server:worker_threads entry. |
idle | number | Minimum: 0 Maximum: unlimited Default value: 0 | To avoid the overhead of starting and stopping web socket worker threads a number of threads can be left running idle. This will consume memory resources to keep them alive and idle when not in use, but will save CPU and thread start-up time when a new web socket requires threads. This option specifies the maximum count of cached idle worker threads. A value of zero will disable the caching of idle threads. |
server/websocket/timeouts
Web socket timeout settings.
Properties
Name | Type | Constraints | Description |
---|---|---|---|
applications | applications | ||
front_end | front_end |
server/websocket/timeouts/applications
Specifies the web socket timeouts for connections between the gateway daemon and protected applications (in seconds). If the timeout is reached the web socket connection will be closed.
Properties
Name | Type | Constraints | Description |
---|---|---|---|
read | number | Minimum: 1 Maximum: unlimited Default value: 120 | The maximum length of time (in seconds) to wait on a read operation to complete. |
write | number | Minimum: 1 Maximum: unlimited Default value: 20 | The maximum length of time (in seconds) to wait on a write operation to complete. |
server/websocket/timeouts/front_end
Specifies the web socket timeouts for connections to the gateway (in seconds). If the timeout is reached the web socket connection will be closed.
Properties
Name | Type | Constraints | Description |
---|---|---|---|
read | number | Minimum: 1 Maximum: unlimited Default value: 120 | The maximum length of time (in seconds) to wait on a read operation to complete. |
write | number | Minimum: 1 Maximum: unlimited Default value: 20 | The maximum length of time (in seconds) to wait on a write operation to complete. |
Example
server:
websocket:
worker_threads:
max: 100
idle: 0
timeouts:
applications:
read: 30
write: 30
front_end:
read: 30
write: 30
Updated about 2 years ago