Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] Add support for PAWS (RFC 7545) 'spectrum.paws.methodName' #88

Open
eshikafe opened this issue Nov 29, 2021 · 0 comments
Open

Comments

@eshikafe
Copy link

eshikafe commented Nov 29, 2021

Is your feature request related to a problem? Please describe.
Support for PAWS protocol method format spectrum.paws.methodName
should be added to gorilla.

I currently get the following errors when I try to use the PAWS JSON-RPC 2.0 format for the method name.

"jsonrpc": "2.0",
"error": {
        "code": -32000,
        "message": "rpc: service/method request ill-formed: \"spectrum.paws.init\"",
        "data": null
    },

Describe the solution you'd like
spectrum.paws should be allowed as a service name as shown below:

s := rpc.NewServer()
s.RegisterCodec(json2.NewCodec(), "application/json")
s.RegisterService(new(SpectrumPaws), "spectrum.paws")

Describe alternatives you've considered
Create a fork of this repo and update the map.go file to support spectrum.paws.Method

@eshikafe eshikafe changed the title [feature] Add support for PAWS (RFC 7545) 'spectrum.init.methodName' [feature] Add support for PAWS (RFC 7545) 'spectrum.paws.methodName' Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant