Skip to content

Commit 955e5e0

Browse files
tal-bejadarrachequesne
authored andcommitted
[feature] Add a local flag (#2628)
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.
1 parent 0ef55b2 commit 955e5e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/namespace.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ exports.events = [
3131

3232
exports.flags = [
3333
'json',
34-
'volatile'
34+
'volatile',
35+
'local'
3536
];
3637

3738
/**

0 commit comments

Comments
 (0)