MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / InitBlockController

Function InitBlockController

pkg/blockcontroller/blockcontroller.go:131–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129}
130
131func InitBlockController() {
132 rpcClient := wshclient.GetBareRpcClient()
133 rpcClient.EventListener.On(wps.Event_BlockClose, handleBlockCloseEvent)
134 wshclient.EventSubCommand(rpcClient, wps.SubscriptionRequest{
135 Event: wps.Event_BlockClose,
136 AllScopes: true,
137 }, nil)
138}
139
140func handleBlockCloseEvent(event *wps.WaveEvent) {
141 blockId, ok := event.Data.(string)

Callers 1

mainFunction · 0.92

Calls 3

GetBareRpcClientFunction · 0.92
EventSubCommandFunction · 0.92
OnMethod · 0.80

Tested by

no test coverage detected