8000 Tests for socket message validation and errors. by daffl · Pull Request #123 · feathersjs/feathers · GitHub
[go: up one dir, main page]

Skip to content

Tests for socket message validation and errors.#123

Merged
ekryski merged 2 commits intomasterfeathersjs/feathers:masterfrom
socket-validation-96-113
Mar 6, 2015
Merged

Tests for socket message validation and errors.#123
ekryski merged 2 commits intomasterfrom
socket-validation-96-113

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
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

Successfully merging this pull request may close these issues.

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

3 participants

0