Skip to content

Expose the RPC litrpc.Proxy.GetInfo via LNC wasm #83

@jamaljsr

Description

@jamaljsr

In Terminal Web, we'd like to get able to get the version of litd that the WASM is connected to. This information is available via the litrpc.Proxy.GetInfo. Unfortunately, when I attempt to call this RPC using make example-server, no response is returned. The WASM doesn't even log that the method is called in the browser console.

I have tried to fix this by adding litrpc.RegisterProxyJSONCallbacks to jsoncallbacks.go but this results in the error

rpc error: code = Unimplemented desc = unknown service /litrpc.Proxy/GetInfo

It looks like this sub-server is being blocked by litd in rpc_proxy.go. I'm not sure what code need to change to unblock just this GetInfo RPC.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions