OptionalallowedOptionalallowedRestrict accepted WebSocket Origin values. When omitted, Origin is not enforced by default.
OptionalheadersMaximum time allowed to receive the complete request headers.
OptionalkeepHow long to keep idle keep-alive connections open.
OptionalmaxMaximum accepted request body size based on Content-Length. Requests above the limit are rejected before the body is read.
OptionalmaxMaximum accepted WebSocket message size in bytes. Passed to ws as maxPayload.
OptionalrequestMaximum time allowed for the full request lifecycle.
OptionaltrustedTrust forwarded proxy headers only when the direct peer matches one of these values.
OptionaltrustTrust the incoming Host header when constructing event.url/request.url. Disabled by default to avoid host header poisoning in absolute URL generation.
Restrict trusted Host values when trustHostHeader is enabled.