Emit event on connection & disconnection