|
|
@ -116,6 +116,7 @@ func makeJSONRPCHandler(funcMap map[string]*RPCFunc, logger log.Logger) http.Han |
|
|
|
// A Notification is a Request object without an "id" member.
|
|
|
|
// The Server MUST NOT reply to a Notification, including those that are within a batch request.
|
|
|
|
if request.ID == "" { |
|
|
|
logger.Debug("HTTPJSONRPC received a notification, skipping... (please send a non-empty ID if you want to call a method)") |
|
|
|
return |
|
|
|
} |
|
|
|
if len(r.URL.Path) > 1 { |
|
|
@ -521,6 +522,7 @@ func (wsc *wsConnection) readRoutine() { |
|
|
|
// A Notification is a Request object without an "id" member.
|
|
|
|
// The Server MUST NOT reply to a Notification, including those that are within a batch request.
|
|
|
|
if request.ID == "" { |
|
|
|
wsc.Logger.Debug("WSJSONRPC received a notification, skipping... (please send a non-empty ID if you want to call a method)") |
|
|
|
continue |
|
|
|
} |
|
|
|
|
|
|
|