Skip to content
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

.mutation on WS message does not call SOCKET_[mutation value] #125

Open
tylorbayer opened this issue Oct 28, 2020 · 0 comments
Open

.mutation on WS message does not call SOCKET_[mutation value] #125

tylorbayer opened this issue Oct 28, 2020 · 0 comments

Comments

@tylorbayer
Copy link

The documentation says:

If there is a .mutation value in the response data, the corresponding mutation is called with the name SOCKET_[mutation value]

This however, is not true. It gets called exactly like the .action case:

If there is an .action value in the response data ie. action: 'customerAdded', the corresponding action is called by name

I personally like this better (calling the mutation directly without the need for the mutation name to start with SOCKET_) but the documentation is wrong either way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant