emit connect/disconnect events