Liking cljdoc? Tell your friends :D

boundary.realtime.shell.connection-registry

In-memory connection registry implementation.

Stores active WebSocket connections in an atom for single-server deployments. For multi-server scaling, swap with Redis-backed registry implementation.

Registry Structure: {connection-id {:connection <Connection record> :ws-adapter <IWebSocketConnection>}}

Responsibilities (Shell/I/O):

  • Store and retrieve connection mappings (stateful atom)
  • Filter connections by user-id, role (uses core filtering functions)
  • Thread-safe updates (atom swap operations)
In-memory connection registry implementation.

Stores active WebSocket connections in an atom for single-server deployments.
For multi-server scaling, swap with Redis-backed registry implementation.

Registry Structure:
  {connection-id {:connection <Connection record>
                  :ws-adapter <IWebSocketConnection>}}

Responsibilities (Shell/I/O):
- Store and retrieve connection mappings (stateful atom)
- Filter connections by user-id, role (uses core filtering functions)
- Thread-safe updates (atom swap operations)
raw docstring

create-in-memory-registryclj

(create-in-memory-registry)

Create in-memory connection registry.

Suitable for single-server deployments. For multi-server scaling, use create-redis-registry (to be implemented in future).

Returns: InMemoryConnectionRegistry instance implementing IConnectionRegistry

Create in-memory connection registry.

Suitable for single-server deployments. For multi-server scaling,
use create-redis-registry (to be implemented in future).

Returns:
  InMemoryConnectionRegistry instance implementing IConnectionRegistry
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close