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

Method isNotification

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

Source from the content-addressed store, hash-verified

89}
90
91func (msg *jsonrpcMessage) isNotification() bool {
92 return msg.ID == nil && msg.Method != ""
93}
94
95func (msg *jsonrpcMessage) isResponse() bool {
96 return msg.hasValidID() && msg.Method == "" && len(msg.Params) == 0

Callers 1

dispatchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected