DRYed up 'get users' and 'user joined' socket events