lightning-node-connect
lightning-node-connect copied to clipboard
Expose the RPC litrpc.Proxy.GetInfo via LNC wasm
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.