added isListening function to bxSocket