Add client (dis)connect events.
Change 'cb' to lambda.