MCPcopy Create free account
hub / github.com/CPChain/chain / isResponse

Method isResponse

api/rpc/client.go:95–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93}
94
95func (msg *jsonrpcMessage) isResponse() bool {
96 return msg.hasValidID() && msg.Method == "" && len(msg.Params) == 0
97}
98
99func (msg *jsonrpcMessage) hasValidID() bool {
100 return len(msg.ID) > 0 && msg.ID[0] != '{' && msg.ID[0] != '['

Callers 1

dispatchMethod · 0.80

Calls 1

hasValidIDMethod · 0.95

Tested by

no test coverage detected