WebAPI/Inter App Communication Alt proposal: Difference between revisions

m
Line 169: Line 169:
  connect('musictrack').then(function onConnectionAccepted(ports) {
  connect('musictrack').then(function onConnectionAccepted(ports) {
   // If the connection is allowed at least by one peer, the resolved callback
   // If the connection is allowed at least by one peer, the resolved callback
   // will be triggered with a list of InterAppMessagePorts as parameter (ports in this case).
   // will be triggered with a list of InterAppMessagePort as parameter (ports in this case).
   ports.forEach(function(port) {
   ports.forEach(function(port) {
     // We still need to wait for the connected peer to notify as able to start
     // We still need to wait for the connected peer to notify as able to start
Confirmed users
110

edits