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

Method RegisterSSEChannel

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

Source from the content-addressed store, hash-verified

261}
262
263func (c *ClientImpl) RegisterSSEChannel(connectionId string) chan ssEvent {
264 c.SSEChannelsLock.Lock()
265 defer c.SSEChannelsLock.Unlock()
266
267 ch := make(chan ssEvent, 100)
268 c.SSEChannels[connectionId] = ch
269 return ch
270}
271
272func (c *ClientImpl) UnregisterSSEChannel(connectionId string) {
273 c.SSEChannelsLock.Lock()

Callers 1

handleSSEMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected