blob: 371d31229321fdc26d6e63591350ead6dc88b12b [file] [log] [blame]
var ports = [];
onconnect = function(event) {
ports.push(event.ports[0]);
for (var i = 0 ; i < ports.length ; i++) {
ports[i].postMessage(ports.length);
}
};