add compression to socket.io event data