Mark this subscription as requiring authorization.
Overloads:
authorize(principalSchema, ...roles) — typed principal, optional role requirementsauthorize(...roles) — untyped principal (unknown), optional role requirementsMark this subscription as requiring authorization.
Overloads:
authorize(principalSchema, ...roles) — typed principal, optional role requirementsauthorize(...roles) — untyped principal (unknown), optional role requirementsMark this subscription as deprecated in documentation.
Longer description for documentation. Supports Markdown.
Link external documentation.
Optionaldescription: stringDefine expected headers on the WebSocket upgrade request.
Define the schema for client→server messages. Messages that do not match this schema are rejected with an error frame.
Declare DI services to be resolved per-connection and passed as the second handler argument.
Return an immutable snapshot of this builder's configuration as SubscriptionMetadata.
A unique, stable identifier for documentation.
Define the schema for server→client events. All yielded values are validated against this schema before sending.
Define the query string schema for the WebSocket upgrade URL.
Short, human-readable summary for documentation.
Documentation tags for grouping.
Immutable, fluent builder for WebSocket subscription endpoint definitions.
All methods return a new builder instance — the original is never mutated. Use
endpoint.subscription()to obtain the first builder in the chain.Example