optimized more socket.io event