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
Hey Murat 😄 are there any documentations on all the possible event messages? There is a pretty extensive list over the js side (link), but not sure if that's everything or what they all mean.
Edit: nvm, found the documentation on phoenix framework, which is used to build the realtime server.
Hey @muratmirgun, here are a couple of design decisions that we could make. Currently, realtime-js allows you to create two channels of the same name, using the same real-time client. Should we:
Allow the same. But probably need to document this somewhere because realtime-js is lacking in that aspect
Disallow that by having a check, and throw an error
Don't overwrite the channel. Instead, update the channel to listen to newly specified events. (But then the question arises, do we update the channel at On or at Subscribe?)
Personally, I like second option the most, because it's easiest to implement and it'll probably save developers from having to debug where the heck their events went. Though, I'm not too sure how much we can deviate from realtime-js behaviour.
Handle necessary events coming from the server and update the channel according to the event.
We can discuss from issue about the Events
The text was updated successfully, but these errors were encountered: