Replies: 3 comments
-
One thing I can see that could be a problem is templating because the emitted object is not a string anymore in this specific case. One possibility should be to recurse the object structure and apply templating on all strings or a defined list of properties coming from the flow definition. Another is the ability to call a processor function like what is done in the http engine 'eg |
Beta Was this translation helpful? Give feedback.
-
Made change in this fork so you can nom emit data like this:
Added also a I guess a similar |
Beta Was this translation helpful? Give feedback.
-
Actually added the ability to call validation functions from processor for response or acknowledgment like this:
If your function raises an error it will consider the validation has failed. |
Beta Was this translation helpful? Give feedback.
-
Although the code base seems to allow it a validation error is raised (at least with JS scripts) when using the array version of emit including an object item, the problem is detailled in comments of #831.
If anybody can confirm it is a bug or something to be investigated more deeply I would be grateful. I could help with a PR in any case as it would be very useful for the feathersjs community. I wrote an article before on stress testing with socketio and would be pleased to update it by showing how to use artillery to achieve the same thing.
Beta Was this translation helpful? Give feedback.
All reactions