-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Watch channel events #2692
Watch channel events #2692
Conversation
8ded7ae
to
60af319
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, this is great!
For the future we might consider splitting channels.js
into multiple files but on the other hand I just hope we don't have many more events to manage 😛
60af319
to
6f8730a
Compare
6f8730a
to
efc1c7f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Description
Refactor how we watch websocket events using a eventChannel.
This is the correct way to listen external events.
Big benefits:
How was this tested?
Test added. I have created a mocked version of the phoenix sockets. It looks minimalist enough