Emit socket.io event in java side.