var sendCommands = function () {
    var i = 0
        , client = null
        , pcmd = publisher.commands.publish
        ;