You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have registered this RPC method in node sdk. and then trigger it from livekit-client-js
room.localParticipant.registerRpcMethod('mousemove',async(data: RpcInvocationData)=>{const{ x, y }=JSON.parse(data.payload);constwidth=this.page.viewportSize()?.width??1constheight=this.page.viewportSize()?.height??1this.page.mouse.move(x*width,y*height);return'';});
It did get called several times, but then i get this error in console: error sending rpc method invocation response: No caller found
RPC calls are not designed for this kind of high frequency event, also you'll get worse throughput because it always comes with additional overhead if you perform RPCs. To send mousemove events the recommended approach would be to use publishData directly on a custom topic.
I'll leave this issue open as there is might still a bug around how callers are handled.
cc @bcherry for additional insight
Version: 0.13.3
I have registered this RPC method in node sdk. and then trigger it from
livekit-client-js
It did get called several times, but then i get this error in console:
error sending rpc method invocation response: No caller found
node-sdks/packages/livekit-rtc/src/participant.ts
Line 536 in 473c46b
After this error message appeared, it seems the node-sdk cannot receive rpc call again.
Do you have any idea?
The text was updated successfully, but these errors were encountered: