mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-13 17:14:02 +03:00
13 lines
314 B
JavaScript
13 lines
314 B
JavaScript
async function main() {
|
|
window.ws = new WebSocket('ws://localhost:' + window.location.port + '/ws');
|
|
window.ws.addEventListener('message', message => {});
|
|
|
|
fetch('fetch-request-a.js');
|
|
window.top.fetchSecond = () => {
|
|
// Do not return the promise here.
|
|
fetch('fetch-request-b.js');
|
|
};
|
|
}
|
|
|
|
main();
|