lightning-node-connect icon indicating copy to clipboard operation
lightning-node-connect copied to clipboard

Expose the RPC litrpc.Proxy.GetInfo via LNC wasm

Open jamaljsr opened this issue 9 months ago • 4 comments

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.

jamaljsr avatar Sep 14 '23 14:09 jamaljsr