These are chat archives for deployd/contributors

Nov 2017
Nov 04 2017 02:59
@andreialecu great work !!!
Nov 04 2017 03:53
@andreialecu you have mentioned in the best practices on readme with this point
emit to users type calls that return multiple results (eg: emit(dpd.users, {active: true}, 'postModified', this);) are inefficient and should be avoided. Instead you should join sessions to rooms and emit to rooms instead. See PR 698 for more info.
But according to script.js inside deployd core.. if there are 3 arguments like emit(roomname,event,data).. this doesn't emit to users. I even tried it yesterday ...
Any help on this is much appreciated.
Not to mention that I call session.joinRoom(roomname) in OnLogin