ChatWatchEventChannel returns the pubsub channel for chat lifecycle events scoped to a single user.
(ownerID uuid.UUID)
| 14 | // ChatWatchEventChannel returns the pubsub channel for chat |
| 15 | // lifecycle events scoped to a single user. |
| 16 | func ChatWatchEventChannel(ownerID uuid.UUID) string { |
| 17 | return fmt.Sprintf("chat:owner:%s", ownerID) |
| 18 | } |
| 19 | |
| 20 | // HandleChatWatchEvent wraps a typed callback for |
| 21 | // ChatWatchEvent messages delivered via pubsub. |
no outgoing calls
no test coverage detected