Directories
¶
| Path | Synopsis |
|---|---|
|
Command chat is a runnable demonstration of topic broadcast in the gateway package: a room-based WebSocket chat where every message a client sends is fanned out to every other client in the same room via Registry.Broadcast, and WithExclude keeps the sender from getting an echo of its own line back.
|
Command chat is a runnable demonstration of topic broadcast in the gateway package: a room-based WebSocket chat where every message a client sends is fanned out to every other client in the same room via Registry.Broadcast, and WithExclude keeps the sender from getting an echo of its own line back. |
|
Command cluster is a runnable demonstration of the reason this package exists: a connection can be registered on one node and receive a message handed to a completely different node.
|
Command cluster is a runnable demonstration of the reason this package exists: a connection can be registered on one node and receive a message handed to a completely different node. |
|
Command delivery-confirm is a runnable, single-process demonstration of gateway.WithDeliveryConfirmation: the opt-in that turns cross-node delivery from a fire-and-forget actor.Tell into an actor.Ask that waits for the connection-owning node to acknowledge the socket write.
|
Command delivery-confirm is a runnable, single-process demonstration of gateway.WithDeliveryConfirmation: the opt-in that turns cross-node delivery from a fire-and-forget actor.Tell into an actor.Ask that waits for the connection-owning node to acknowledge the socket write. |
|
Command echo is a minimal, runnable demonstration of the gateway package:
|
Command echo is a minimal, runnable demonstration of the gateway package: |
|
Command graphql-ws demonstrates that gateway.Registry is usable without gateway.WSHandler at all.
|
Command graphql-ws demonstrates that gateway.Registry is usable without gateway.WSHandler at all. |
|
Command notification is a minimal, runnable version of the "multi-device group push with offline fallback" pattern every notification-style consumer of gateway needs:
|
Command notification is a minimal, runnable version of the "multi-device group push with offline fallback" pattern every notification-style consumer of gateway needs: |
|
Command offline-push demonstrates Registry.WithOfflineChannel: the library-native replacement for the old pattern where every caller of SendToGroup had to inspect DeliveryResult.None itself and remember to invoke its own offline transport (see examples/notification, which still shows that manual style for comparison).
|
Command offline-push demonstrates Registry.WithOfflineChannel: the library-native replacement for the old pattern where every caller of SendToGroup had to inspect DeliveryResult.None itself and remember to invoke its own offline transport (see examples/notification, which still shows that manual style for comparison). |
|
Command persistence is a minimal, runnable version of gateway's opt-in at-least-once delivery: a gateway.Outbox plus Registry.Ack turning the default fire-and-forget socket write into "persist, deliver, wait for the client's ack, redeliver on reconnect if it never came".
|
Command persistence is a minimal, runnable version of gateway's opt-in at-least-once delivery: a gateway.Outbox plus Registry.Ack turning the default fire-and-forget socket write into "persist, deliver, wait for the client's ack, redeliver on reconnect if it never came". |
|
Command presence-watch is a minimal, runnable version of the "friend came online" pattern: a watcher subscribes once to a group's membership changes with Registry.WatchPresence and receives a PresenceJoin/PresenceLeave event the instant a connection registers or unregisters for that group, instead of polling Registry.GroupMembers or Registry.IsOnline on a timer.
|
Command presence-watch is a minimal, runnable version of the "friend came online" pattern: a watcher subscribes once to a group's membership changes with Registry.WatchPresence and receives a PresenceJoin/PresenceLeave event the instant a connection registers or unregisters for that group, instead of polling Registry.GroupMembers or Registry.IsOnline on a timer. |
|
Command reauth-kick is a minimal, runnable version of the "authorization can be revoked out from under a live socket" pattern: a WebSocket handshake only proves who the caller was at connect time, not who they still are five minutes into a long-lived session.
|
Command reauth-kick is a minimal, runnable version of the "authorization can be revoked out from under a live socket" pattern: a WebSocket handshake only proves who the caller was at connect time, not who they still are five minutes into a long-lived session. |
|
Command sse-resume is a minimal, runnable demonstration of Last-Event-ID replay.
|
Command sse-resume is a minimal, runnable demonstration of Last-Event-ID replay. |
|
Command tls-cloudflare demonstrates gateway.Manager wired for the two TLS shapes described in README.md:
|
Command tls-cloudflare demonstrates gateway.Manager wired for the two TLS shapes described in README.md: |
Click to show internal directories.
Click to hide internal directories.