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

Method publishStatus

coderd/x/chatd/chatd.go:5472–5484  ·  view source on GitHub ↗
(chatID uuid.UUID, status database.ChatStatus, workerID uuid.NullUUID)

Source from the content-addressed store, hash-verified

5470}
5471
5472func (p *Server) publishStatus(chatID uuid.UUID, status database.ChatStatus, workerID uuid.NullUUID) {
5473 p.publishEvent(chatID, codersdk.ChatStreamEvent{
5474 Type: codersdk.ChatStreamEventTypeStatus,
5475 Status: &codersdk.ChatStreamStatus{Status: codersdk.ChatStatus(status)},
5476 })
5477 notify := coderdpubsub.ChatStreamNotifyMessage{
5478 Status: string(status),
5479 }
5480 if workerID.Valid {
5481 notify.WorkerID = workerID.UUID.String()
5482 }
5483 p.publishChatStreamNotify(chatID, notify)
5484}
5485
5486// publishChatStreamNotify broadcasts a per-chat stream notification via
5487// PostgreSQL pubsub so that all replicas can merge durable database updates

Callers 8

SendMessageMethod · 0.95
EditMessageMethod · 0.95
ArchiveChatMethod · 0.95
PromoteQueuedMethod · 0.95
RefreshStatusMethod · 0.95
setChatWaitingMethod · 0.95
processChatMethod · 0.95

Calls 4

publishEventMethod · 0.95
ChatStatusTypeAlias · 0.92
StringMethod · 0.45