Record - http : WSServiceConfig

Configurations for a WebSocket service.

Fields

  • path string
  • Path of the WebSocket service

  • subProtocols string[] (default [])
  • Negotiable sub protocol by the service

  • idleTimeoutInSeconds int (default 0)
  • Idle timeout for the client connection. Upon timeout, onIdleTimeout resource (if defined) in the server service will be triggered. Note that this overrides the timeoutInMillis config in the http:Listener.

  • maxFrameSize int (default 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.