change socket connection/disconnection events