function broadcastDataToListeners(ws, req){
    ws.send("Successfully connected");

    ws.on('message', function(msg){
        var clients = wsInstance.clients;
        for(var i = 0; i < clients.length; i++){

            if(clients[i].upgradeReq.originalUrl.indexOf("listen") > -1){
                clients[i].send(msg);
            }
        }
    });
}
/**
  * Broadcast provided audio data to listeners
 * @param ws {Object} The websocket object, specific for client
 * @param req {Object} The response for the client
 */
Broadcast provided audio data to listeners
@param ws {Object} The websocket object, specific for client
@param req {Object} The response for the client
Broadcast provided audio data to listeners @param ws { Object } The websocket object specific for client @param req { Object } The response for the client
function broadcastDataToListeners(ws, req){
    ws.send("Successfully connected");
    ws.on('message', function(msg){
        var clients = wsInstance.clients;
        for(var i = 0; i < clients.length; i++){
            if(clients[i].upgradeReq.originalUrl.indexOf("listen") > -1){
                clients[i].send(msg);
            }
        }
    });
}
function broadcastDataToListeners ( ws , req ) { ws . send ( "Successfully connected" ) ; ws . on ( 'message' , function ( msg ) { var clients = wsInstance . clients ; for ( var i = 0 ; i < clients . length ; i ++ ) { if ( clients [ i ] . upgradeReq . originalUrl . indexOf ( "listen" ) > - 1 ) { clients [ i ] . send ( msg ) ; } } } ) ; }
Broadcast provided audio data to listeners
 @param ws {Object} The websocket object, specific for client
 @param req {Object} The response for the client
Broadcast provided audio data to listeners @param ws { Object } The websocket object specific for client @param req { Object } The response for the client