added a hacky way to add generic socket event listener.