MCPcopy Create free account
hub / github.com/coder/agentapi / EmitScreen

Method EmitScreen

lib/httpapi/events.go:208–218  ·  view source on GitHub ↗
(newScreen string)

Source from the content-addressed store, hash-verified

206}
207
208func (e *EventEmitter) EmitScreen(newScreen string) {
209 e.mu.Lock()
210 defer e.mu.Unlock()
211
212 if e.screen == newScreen {
213 return
214 }
215
216 e.notifyChannels(EventTypeScreenUpdate, ScreenUpdateBody{Screen: strings.TrimRight(newScreen, mf.WhiteSpaceChars)})
217 e.screen = newScreen
218}
219
220func (e *EventEmitter) EmitError(message string, level st.ErrorLevel) {
221 e.mu.Lock()

Callers

nothing calls this directly

Calls 1

notifyChannelsMethod · 0.95

Tested by

no test coverage detected