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

Function subscribeWithInitialError

coderd/x/chatd/chatd.go:4911–4924  ·  view source on GitHub ↗
(chatID uuid.UUID, message string)

Source from the content-addressed store, hash-verified

4909}
4910
4911func subscribeWithInitialError(chatID uuid.UUID, message string) (
4912 []codersdk.ChatStreamEvent,
4913 <-chan codersdk.ChatStreamEvent,
4914 func(),
4915 bool,
4916) {
4917 events := make(chan codersdk.ChatStreamEvent)
4918 close(events)
4919 return []codersdk.ChatStreamEvent{{
4920 Type: codersdk.ChatStreamEventTypeError,
4921 ChatID: chatID,
4922 Error: &codersdk.ChatError{Message: message},
4923 }}, events, func() {}, true
4924}
4925
4926func (p *Server) Subscribe(
4927 ctx context.Context,

Callers 1

SubscribeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected