managing bxSocket event listeners