File tree Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 10
10
AsyncRPCFilterRequestBuilder ,
11
11
)
12
12
from postgrest .constants import DEFAULT_POSTGREST_CLIENT_TIMEOUT
13
- from realtime .connection import Socket
14
13
from storage3 import AsyncStorageClient
15
14
from storage3 .constants import DEFAULT_TIMEOUT as DEFAULT_STORAGE_CLIENT_TIMEOUT
16
15
from supafunc import AsyncFunctionsClient
@@ -81,7 +80,12 @@ def __init__(
81
80
auth_url = self .auth_url ,
82
81
client_options = options ,
83
82
)
84
- self .realtime = self ._init_realtime_client (self .realtime_url , self .supabase_key )
83
+ # TODO: Bring up to parity with JS client.
84
+ # self.realtime: SupabaseRealtimeClient = self._init_realtime_client(
85
+ # realtime_url=self.realtime_url,
86
+ # supabase_key=self.supabase_key,
87
+ # )
88
+ self .realtime = None
85
89
self ._postgrest = None
86
90
self ._storage = None
87
91
self ._functions = None
@@ -269,11 +273,6 @@ def _init_postgrest_client(
269
273
verify = verify ,
270
274
)
271
275
272
- @staticmethod
273
- def _init_realtime_client (realtime_url : str , supabase_key : str ) -> Socket :
274
- """Private helper for creating an instance of the Socket client."""
275
- return Socket (realtime_url , supabase_key )
276
-
277
276
def _create_auth_header (self , token : str ):
278
277
return f"Bearer { token } "
279
278
Original file line number Diff line number Diff line change 10
10
SyncRPCFilterRequestBuilder ,
11
11
)
12
12
from postgrest .constants import DEFAULT_POSTGREST_CLIENT_TIMEOUT
13
- from realtime .connection import Socket
14
13
from storage3 import SyncStorageClient
15
14
from storage3 .constants import DEFAULT_TIMEOUT as DEFAULT_STORAGE_CLIENT_TIMEOUT
16
15
from supafunc import SyncFunctionsClient
@@ -81,7 +80,12 @@ def __init__(
81
80
auth_url = self .auth_url ,
82
81
client_options = options ,
83
82
)
84
- self .realtime = self ._init_realtime_client (self .realtime_url , self .supabase_key )
83
+ # TODO: Bring up to parity with JS client.
84
+ # self.realtime: SupabaseRealtimeClient = self._init_realtime_client(
85
+ # realtime_url=self.realtime_url,
86
+ # supabase_key=self.supabase_key,
87
+ # )
88
+ self .realtime = None
85
89
self ._postgrest = None
86
90
self ._storage = None
87
91
self ._functions = None
@@ -269,11 +273,6 @@ def _init_postgrest_client(
269
273
verify = verify ,
270
274
)
271
275
272
- @staticmethod
273
- def _init_realtime_client (realtime_url : str , supabase_key : str ) -> Socket :
274
- """Private helper for creating an instance of the Socket client."""
275
- return Socket (realtime_url , supabase_key )
276
-
277
276
def _create_auth_header (self , token : str ):
278
277
return f"Bearer { token } "
279
278
You can’t perform that action at this time.
0 commit comments