• Eduardo Sanz García's avatar
    Respond to the first port request, ignore additional ones · e78ada77
    Eduardo Sanz García authored
    On Chrome, transferring the port more than once causes an error:
    
    ```
    const {port1, port2} = new MessageChannel();
    window.postMessage('hello', '*', [port1])
    window.postMessage('hello', '*', [port1])
    > Uncaught DOMException: Failed to execute 'postMessage' on 'Window': Port at index 0 is already neutered.
        at <anonymous>:1:8
    ```
    
    As a result of `PortFinder` polling the host, `PortProvider` could
    respond multiple times, specially when the polling frequency is high.
    e78ada77
Name
Last commit
Last update
..
annotator Loading commit data...
boot Loading commit data...
images/icons Loading commit data...
shared Loading commit data...
sidebar Loading commit data...
styles Loading commit data...
test-util Loading commit data...
types Loading commit data...
.eslintrc Loading commit data...
karma.config.js Loading commit data...
tsconfig.json Loading commit data...