js/lib/Handshake.js
function () {
        //client will set the counter property on the message
        //logger.log("server: send hello");
        this.client.secureOut = this.secureOut;
        this.client.sendCounter = CryptoLib.getRandomUINT16();
        this.client.sendMessage("Hello", {}, null, null);

        this.stage++;
        this.nextStep();
    }
function () {
        //client will set the counter property on the message
        //logger.log("server: send hello");
        this.client.secureOut = this.secureOut;
        this.client.sendCounter = CryptoLib.getRandomUINT16();
        this.client.sendMessage("Hello", {}, null, null);

        this.stage++;
        this.nextStep();
    }
function ( ) { //client will set the counter property on the message //logger.log("server: send hello"); this . client . secureOut = this . secureOut ; this . client . sendCounter = CryptoLib . getRandomUINT16 ( ) ; this . client . sendMessage ( "Hello" , { } , null , null ) ; this . stage ++ ; this . nextStep ( ) ; }
send a hello to the client, with our new random counter
send a hello to the client with our new random counter