adding automatic event wrapper for socket.io responses