diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2015-09-04 01:40:29 +0200 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2015-09-04 01:44:10 +0200 |
commit | 521e661dcb38b5a58b70593f3b805be57bd6746f (patch) | |
tree | 9a38fbefdb491ab3564b8fba96acfe1776939b2d /client/config/presence.js | |
parent | 40fafd4b142c541172cd23dabd8e7304b2a4035b (diff) | |
download | wekan-521e661dcb38b5a58b70593f3b805be57bd6746f.tar.gz wekan-521e661dcb38b5a58b70593f3b805be57bd6746f.tar.bz2 wekan-521e661dcb38b5a58b70593f3b805be57bd6746f.zip |
Change our presence package
tmeasday:presence was doing unnecessary ping calls to the server every
5 seconds instead of using the status of the DDP connection (this
could save a fair amount of traffic in case of important server load).
I guess this change also fixes #221, but since no issue reproduction
was provided, it's difficult to tell.
Diffstat (limited to 'client/config/presence.js')
-rw-r--r-- | client/config/presence.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/config/presence.js b/client/config/presence.js new file mode 100644 index 00000000..39b94e4d --- /dev/null +++ b/client/config/presence.js @@ -0,0 +1,7 @@ +Presence.configure({ + state() { + return { + currentBoardId: Session.get('currentBoard'), + }; + }, +}); |