Broadcast socket.io events and add listeners