Open
Description
Bug report
- I confirm this is a bug with Supabase, not with my own application.
- I confirm I have searched the Docs, GitHub Discussions, and Discord.
Describe the bug
Each setAuth call sends a new access_token payload (all good):
realtime-js/src/RealtimeClient.ts
Lines 337 to 347 in 82e9966
Each sendHeartBeat call calls setAuth (even if accessToken hasn't changeD), which results in a lot of unnecessary messages being sent:
realtime-js/src/RealtimeClient.ts
Lines 553 to 574 in 82e9966
Also, each call to join a channel triggers new call to access_token, even though the accessToken is also sent with the phx_join
event already.
Are we being charged for all these unnecessary messages being sent?