Closed thomaschaaf closed 8 years ago
The on('message') is fired for every match. We should only broadcast it, if the path and event match.
With DEBUG=* node src/
Before:
feathers-sync:redis emitting event to channel todos patched +2ms feathers-sync:redis got event "todos patched", calling old emit [object Object] +1ms feathers-sync:redis got event "todos patched", calling old emit [object Object] +0ms feathers-sync:redis got event "todos patched", calling old emit [object Object] +0ms feathers-sync:redis got event "todos patched", calling old emit [object Object] +1ms
After:
feathers-sync:redis emitting event to channel todos patched +3ms feathers-sync:redis got event "todos patched", calling old emit [object Object] +0ms
Makes sense, thank you. I'll publish a patch later today.
The on('message') is fired for every match. We should only broadcast it, if the path and event match.
With DEBUG=* node src/
Before:
After: