What it is responsible for
The Websockets subsystem manages websocket-oriented work entering throughBaseWsInstanceAbstractWsAdapterMESSAGE_MAPPING_METADATAMESSAGE_MAPPING_METADATAWhat it refuses
It rejects activation when!canActivateWsException!Array.isArray(filters)InvalidExceptionFilterException!Number.isInteger(port)InvalidSocketPortExceptionNotable members
- is a work-entry symbol and carries the instance-facing side of the subsystem’s visible boundary.
BaseWsInstance - is a work-entry symbol and identifies the abstract adapter-facing side of that boundary.
AbstractWsAdapter - is a work-entry constant that identifies the metadata boundary associated with incoming mapped work in this named subsystem.
MESSAGE_MAPPING_METADATA
packages/websocketsWhat it is made of
Its 87 entities sit in 36 files underpackages/websocketsconstants.tsWebSocketsControllerWhere work enters
- —
Readme.md:1packages/websockets/Readme.md - —
BaseWsInstance:8packages/websockets/adapters/ws-adapter.ts - —
AbstractWsAdapter:13packages/websockets/adapters/ws-adapter.ts - —
MESSAGE_MAPPING_METADATA:3packages/websockets/constants.ts
How it refuses and fails
10 of its components record a refusal or a failure handler. 9 of them refuse work outright, under a condition written into the component itself. TheircatchHow this code is named
These conventions cover most of the codebase. Learning them is faster than reading an index — each one lets you find any member of its family without looking it up.
| Pattern | Where | Count | Examples |
|---|---|---|---|
| across the repository | 9 | |
| | 6 | |
Was this page helpful?