Confirmed users
110
edits
m (→Connection) |
|||
| 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 | // 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 | ||