imjoy-team / imjoy-rpc

The RPC library used in ImJoy.
MIT License
23 stars 5 forks source link

Reconnection issue in hypha rpc #554

Open oeway opened 9 months ago

oeway commented 9 months ago

The current implementation of hypha rpc cannot handle re-connection properly after disconnected from the server.

Here, we need to have a mechanism to restore connection after disconnecting from the server. Here is a list of points to be considered:

For reference, this is the server implementation: https://github.com/amun-ai/hypha/blob/main/hypha/websocket.py (to properly handle the reconnection, we might need to update the logic here too)