added client connect/disconnect events back-port of issue #922
Merge pull request #1374 from gurbuzali/improvement/3.x/client-events

added client connect/disconnect events back-port of issue #922