feathersjs-ecosystem / feathers-sync

Synchronize service events between Feathers application instances
MIT License
222 stars 41 forks source link

Custom events do not get broadcasted to other servers #173

Closed sachinsawant71 closed 2 years ago

sachinsawant71 commented 2 years ago

I have a feathersJS service with a custom event. I have two node cluster with feathers-sync, I am using rabbitMQ as a middleware for feathers-sync.

When custom event is emitted on the first server, it is not received by second server.

It works fine for standard event e.g. create, update etc.

Module versions "@feathersjs/feathers": "^4.3.1" "feathers-sync": "2.4.0"

NodeJS version: node version - v14.17.3

Operating System: Linux

daffl commented 2 years ago

This is tested in https://github.com/feathersjs-ecosystem/feathers-sync/blob/release/test/core.test.js#L82 did you set it up as a custom event as described in https://docs.feathersjs.com/api/events.html#custom-events?