code: function (channel, data, id, prevId, cb) {
          if (utilities.isFunction(id)) {
              cb = id;
              id = undefined;
              prevId = undefined;
          }
          this.pubControl.publish(channel, new pubcontrol.Item(
                  new jsonobjectformat.JsonObjectFormat(data),
                  id, prevId), cb);
      }
docs: Publish the specified data to the specified channel for the configured Fanout.io realm. Optionally provide an ID and previous ID to send along with the message, as well a callback method that will be called after publishing is complete and passed the result and error message (if an error was encountered).