MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / callHostStreamClose

Method callHostStreamClose

internal/pluginhost/host_callbacks.go:260–267  ·  view source on GitHub ↗
(request []byte)

Source from the content-addressed store, hash-verified

258}
259
260func (h *Host) callHostStreamClose(request []byte) ([]byte, error) {
261 var req rpcStreamCloseRequest
262 if errUnmarshal := json.Unmarshal(request, &req); errUnmarshal != nil {
263 return nil, fmt.Errorf("decode stream close request: %w", errUnmarshal)
264 }
265 h.streams.close(req.StreamID, req.Error)
266 return marshalRPCResult(rpcEmptyResponse{})
267}
268
269func (h *Host) callHostModelExecute(ctx context.Context, request []byte) ([]byte, error) {
270 var req rpcHostModelExecutionRequest

Callers 1

callFromPluginMethod · 0.95

Calls 2

marshalRPCResultFunction · 0.85
closeMethod · 0.45

Tested by

no test coverage detected