model/network.js
function(transport, message, info) {
        var e = message[0].replace('/', '');

        var data = null;
        if (message[1]) {
            try {
                data = JSON.parse(message[1]);
            } catch (e) {
                logger.warn('OSC messages should be JSON');
            }
        }

        transport.emit(e, data);
    }
function(transport, message, info) {
        var e = message[0].replace('/', '');

        var data = null;
        if (message[1]) {
            try {
                data = JSON.parse(message[1]);
            } catch (e) {
                logger.warn('OSC messages should be JSON');
            }
        }

        transport.emit(e, data);
    }
function ( transport , message , info ) { var e = message [ 0 ] . replace ( '/' , '' ) ; var data = null ; if ( message [ 1 ] ) { try { data = JSON . parse ( message [ 1 ] ) ; } catch ( e ) { logger . warn ( 'OSC messages should be JSON' ) ; } } transport . emit ( e , data ) ; }
Generic handler to decode and re-post OSC messages as native events.
Generic handler to decode and re - post OSC messages as native events .