buffer);       // ArrayBuffer
        connection.send(message5);              // ArrayBufferView
        stash.receive().then(data => {
          connection.send(message5);
        });
      }
      // PresentationConnection_onclose-manual.https.html
      else if (testCase === 'close') {
        connection.close();
      }
    });
  };

  navigator.presentation.receiver.connectionList
    .then(list => {
      list.onconnectionavailable = evt => {
        addConnection(evt.connection);
      };
      list.