Added listener functions to SockerManager.