A custom transport
passed to @supabase/realtime-js > RealtimeClient
cannot not access internal _onConnOpen
, _onConnError
, _onConnMessage
, _onConnClose
.
#30361
Unanswered
liyachun01
asked this question in
Questions
Replies: 1 comment
-
Facing the same issue. Seems like an oversight to me - how can you possibly implement a custom transport like this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using realtime-js, If a custom
transport
is passed to@supabase/realtime-js > RealtimeClient
, it cannot access internal_onConnOpen
,_onConnError
,_onConnMessage
,_onConnClose
. While the connection is successful, messages won't be correctly resolved.Looking at the source code, the
this.setupConnection()
is missing. Is it intentional (Let the custom transport resolve message) or is it a bug?https://github.com/supabase/realtime-js/blob/82e996685da8ecb75f327d7faf52096b5953c3c3/src/RealtimeClient.ts#L192-L202
https://github.com/supabase/realtime-js/blob/82e996685da8ecb7Ï5f327d7faf52096b5953c3c3/src/RealtimeClient.ts#L418-L427
Beta Was this translation helpful? Give feedback.
All reactions