callback on connect/disconnect
0.2.0