docs: function PubNubConnection(transport, id, receive) {
    this.id = id;
    this.transport = transport;
  
    // ready state
    var me = this;
    this.ready = new Promise(function (resolve, reject) {
      transport.pubnub.subscribe({
        channel: id,
        message: function (message) {
          receive(message.from, message.message);
        },
        connect: function () {
          resolve(me);
        }
      });
    });
  }