bind to client socket events