lib/client/source/connectaSocket.js
function onArrayBuffer(data)
    {
        var arr = bufferToArray(scope.byteType,data);
        
        if(arr)
        {
            if(arr[arr.length-1] == MessageType.RTC_FAIL && scope.rtcFallback == true && scope.useRTC == true)
            {
                if(scope.onRTCFallback)
                {
                    scope.onRTCFallback(arr[arr.length-2],arr,true);
                }
            }
            else
            {
                if(scope.onBytesMessage)
                {
                    scope.onBytesMessage(arr);
                }
            }
        }
    }
function onArrayBuffer(data)
    {
        var arr = bufferToArray(scope.byteType,data);
        
        if(arr)
        {
            if(arr[arr.length-1] == MessageType.RTC_FAIL && scope.rtcFallback == true && scope.useRTC == true)
            {
                if(scope.onRTCFallback)
                {
                    scope.onRTCFallback(arr[arr.length-2],arr,true);
                }
            }
            else
            {
                if(scope.onBytesMessage)
                {
                    scope.onBytesMessage(arr);
                }
            }
        }
    }
function onArrayBuffer ( data ) { var arr = bufferToArray ( scope . byteType , data ) ; if ( arr ) { if ( arr [ arr . length - 1 ] == MessageType . RTC_FAIL && scope . rtcFallback == true && scope . useRTC == true ) { if ( scope . onRTCFallback ) { scope . onRTCFallback ( arr [ arr . length - 2 ] , arr , true ) ; } } else { if ( scope . onBytesMessage ) { scope . onBytesMessage ( arr ) ; } } } }
server message callback for bytebuffer message
server message callback for bytebuffer message