some small changes, and add send, send_error, throw_error and some field

This commit is contained in:
2025-08-09 10:41:50 +03:00
parent 811403a0a2
commit 2ceb236a53
4 changed files with 160 additions and 51 deletions

View File

@@ -30,7 +30,7 @@ func (h *HandlerV1) Handle(_ context.Context, sid string, r *http.Request, req *
default:
// JSON-RPC 2.0 Specification:
// https://www.jsonrpc.org/specification#parameter_structures
//
//
// "params" MUST be either an *array* or an *object* if included.
// Any other type (e.g., a number, string, or boolean) is INVALID.
h.x.SLog.Info("invalid request received", slog.String("issue", rpc.ErrInvalidParamsS))