Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Tests for socket message validation and errors. #123

Merged
merged 2 commits into from
Mar 6, 2015

Conversation

daffl
Copy link
Member

@daffl daffl commented Mar 6, 2015

This pull request adds tests for the latest feathers-commons functionality which allows Socket message validation and to omit parameters and calls back with an error when wrong arguments are submitted. Closes #96 and closes #113. /cc @marshallswain

@ekryski
Copy link
Contributor

ekryski commented Mar 6, 2015

Looks all good!

ekryski added a commit that referenced this pull request Mar 6, 2015
Tests for socket message validation and errors.
@ekryski ekryski merged commit cf7148e into master Mar 6, 2015
@ekryski ekryski deleted the socket-validation-96-113 branch March 6, 2015 20:45
@marshallswain
Copy link
Member

I love the validation! It's good to see the server still running after doing something stupid.

@daffl
Copy link
Member Author

daffl commented Mar 7, 2015

I might refactor this as a general mixin that doesn't just do this for sockets but for all service method calls all the time (so you can also use this with app.service, hooks etc.).

daffl added a commit that referenced this pull request Aug 25, 2018
Remove typo, update year in generated README
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Server hardening with socket message validation. Should socket calls require a callback?
3 participants