MCPcopy Index your code
hub / github.com/coder/coder / PubsubChannel

Function PubsubChannel

coderd/x/chatd/chatdebug/types.go:164–169  ·  view source on GitHub ↗

PubsubChannel returns the chat-scoped pubsub channel for debug events. Nil chat IDs use the shared broadcast channel so publishers and subscribers can coordinate through one discoverable helper.

(chatID uuid.UUID)

Source from the content-addressed store, hash-verified

162// Nil chat IDs use the shared broadcast channel so publishers and subscribers
163// can coordinate through one discoverable helper.
164func PubsubChannel(chatID uuid.UUID) string {
165 if chatID == uuid.Nil {
166 return BroadcastPubsubChannel
167 }
168 return "chat_debug:" + chatID.String()
169}

Calls 1

StringMethod · 0.45