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
The acreate_client accepts ClientOptions, which has a realtime field with type Optional[Dict[str, Any]]. These will be passed to _init_realtime_client.
Hi is there a way I can test this locally after I fix this? I am new to supabase and open source.. I have used supabase as a client but I am unsure of the use-case as a realtime client and how I should test the same.
Hi is there a way I can test this locally after I fix this? I am new to supabase and open source.. I have used supabase as a client but I am unsure of the use-case as a realtime client and how I should test the same.
Not predictably, you need to wait hours until it randomly disconnects, and it might just keep silent. So you need to trigger it via database changes or realtime messages to verify the disconnect
Issue
I seem to be unable to pass arguments, such as
auto_reconnect
to theAsyncRealtimeClient
. Therefore, I need to patch the client after initialization.The problem
The
acreate_client
acceptsClientOptions
, which has arealtime
field with typeOptional[Dict[str, Any]]
. These will be passed to_init_realtime_client
.supabase-py/supabase/_async/client.py
Lines 84 to 88 in bf252a2
supabase-py/supabase/_async/client.py
Lines 218 to 225 in bf252a2
However, the options are passed to params, and I cannot pass the auto_reconnect flag (or other attributes) via the supabase module.
permalink
Suggestion
Unpack
options
immediately. This would allow configuration such as:The text was updated successfully, but these errors were encountered: