batch socket events