feathersjs-ecosystem / feathers-sync

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

Only send sync events but not receive from other apps #148

Closed apmcodes closed 4 years ago

apmcodes commented 4 years ago

Currently, non-client facing apps receives sync events. Is there a way to configure such apps to only generate sync events but do not receive sync events.

Can this be accomplished via channel.js

    "@feathersjs/feathers": "^4.5.3",
    "@feathersjs/socketio": "^4.5.4",
    "feathers-sync": "^2.1.0",
daffl commented 4 years ago

You can probably just remove all sync-in event listeners after setting up feathers-sync:

app.removeAllListeners('sync-in');
apmcodes commented 4 years ago

Got it. Thanks.