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

Function sendBlockCloseEvent

pkg/wcore/block.go:235–244  ·  view source on GitHub ↗
(blockId string)

Source from the content-addressed store, hash-verified

233}
234
235func sendBlockCloseEvent(blockId string) {
236 waveEvent := wps.WaveEvent{
237 Event: wps.Event_BlockClose,
238 Scopes: []string{
239 waveobj.MakeORef(waveobj.OType_Block, blockId).String(),
240 },
241 Data: blockId,
242 }
243 wps.Broker.Publish(waveEvent)
244}

Callers 1

DeleteBlockFunction · 0.85

Calls 3

MakeORefFunction · 0.92
PublishMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected