lib/ps4socket.js
function(packet) {
        packet.status = packet.readInt(8);
        packet.oskType = packet.readInt(12);
        // TODO: for some reason, the way we decode it
        //  gives an extra 16 bytes of garbage here. We
        //  should really figure out why that's happening
        //  ... and fix it
        if (packet.buf.length > 36) {
            packet.max = packet.readInt(32);
            packet.initial = packet.readString(36);
        }
        this.emit('start_osk_result', packet);
    }
function(packet) {
        packet.status = packet.readInt(8);
        packet.oskType = packet.readInt(12);
        // TODO: for some reason, the way we decode it
        //  gives an extra 16 bytes of garbage here. We
        //  should really figure out why that's happening
        //  ... and fix it
        if (packet.buf.length > 36) {
            packet.max = packet.readInt(32);
            packet.initial = packet.readString(36);
        }
        this.emit('start_osk_result', packet);
    }
function ( packet ) { packet . status = packet . readInt ( 8 ) ; packet . oskType = packet . readInt ( 12 ) ; // TODO: for some reason, the way we decode it //  gives an extra 16 bytes of garbage here. We //  should really figure out why that's happening //  ... and fix it if ( packet . buf . length > 36 ) { packet . max = packet . readInt ( 32 ) ; packet . initial = packet . readString ( 36 ) ; } this . emit ( 'start_osk_result' , packet ) ; }
osk start result
osk start result