Modified socketManager listeners to pass an optional object as first
argument of called lister.