added demo socket events