MCPcopy
hub / github.com/wavetermdev/waveterm / UnregisterSSEChannel

Method UnregisterSSEChannel

tsunami/engine/clientimpl.go:272–280  ·  view source on GitHub ↗
(connectionId string)

Source from the content-addressed store, hash-verified

270}
271
272func (c *ClientImpl) UnregisterSSEChannel(connectionId string) {
273 c.SSEChannelsLock.Lock()
274 defer c.SSEChannelsLock.Unlock()
275
276 if ch, exists := c.SSEChannels[connectionId]; exists {
277 close(ch)
278 delete(c.SSEChannels, connectionId)
279 }
280}
281
282func (c *ClientImpl) SendSSEvent(event ssEvent) error {
283 if c.GetIsDone() {

Callers 1

handleSSEMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected