Source code

Revision control

Copy as Markdown

Other Tools

'use strict';
importScripts(
'test-helpers.js',
'messaging-serialize-helpers.js',
'message-target.js'
);
self.addEventListener('connect', connect_event => {
const message_port = connect_event.ports[0];
add_message_event_handlers(
/*receiver=*/message_port, /*target=*/message_port);
message_port.start();
});