Skip to content

Commit

Permalink
[feature] Add a local flag (#2628)
Browse files Browse the repository at this point in the history
That new flag will prevent the adapter (redis) from publishing the emit to the pub/sub server.

When several instances of a server receive the same event from a third party (not from a client), each server instance broadcasts the event to all his clients. With the local flag, and the change in the redis adapter, each server instance send the event only to his client, so each client receive only one unique event.
  • Loading branch information
tal-beja authored and darrachequesne committed Nov 24, 2016
1 parent 0ef55b2 commit 955e5e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/namespace.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ exports.events = [

exports.flags = [
'json',
'volatile'
'volatile',
'local'
];

/**
Expand Down

0 comments on commit 955e5e0

Please sign in to comment.