Record -
http
: WSServiceConfig
Configurations for a WebSocket service.
Fields
- endpoints Listener[] []
-
An array of endpoints the service would be attached to
- path string
-
Path of the WebSocket service
- subProtocols string[] []
-
Negotiable sub protocol by the service
- idleTimeoutInSeconds int 0
-
Idle timeout for the client connection. Upon timeout,
onIdleTimeout
resource (if defined) in the server service will be triggered. Note that this overrides thetimeoutMillis
config in thehttp:Listener
.
- maxFrameSize int 0
-
The maximum payload size of a WebSocket frame in bytes. If this is not set or is negative or zero, the default frame size will be used.