Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for the EventTarget once option #1754

Merged
merged 8 commits into from May 7, 2020
Merged

Commits on May 7, 2020

  1. Add support for the EventTarget once option

    As per the documentation this is something not browser related and should be supported to allow transparent polyfill usage
    
    https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener
    
    ```js
    import WebSocket from 'ws'
    
    new WebSocket().addEventListener('message', () => {}, { once: true })
    ```
    Sceat authored and lpinca committed May 7, 2020
    Copy the full SHA
    87b531b View commit details
    Browse the repository at this point in the history
  2. fix lint errors

    Sceat authored and lpinca committed May 7, 2020
    Copy the full SHA
    a9cdd64 View commit details
    Browse the repository at this point in the history
  3. Revert "fix lint errors"

    This reverts commit 697ed9b.
    Sceat authored and lpinca committed May 7, 2020
    Copy the full SHA
    f72574c View commit details
    Browse the repository at this point in the history
  4. update documentation 📝

    Sceat authored and lpinca committed May 7, 2020
    Copy the full SHA
    06d8994 View commit details
    Browse the repository at this point in the history
  5. fix documentation code style with prettier

    Sceat authored and lpinca committed May 7, 2020
    Copy the full SHA
    0502f19 View commit details
    Browse the repository at this point in the history
  6. supporting custom events

    Sceat authored and lpinca committed May 7, 2020
    Copy the full SHA
    d4a1b87 View commit details
    Browse the repository at this point in the history
  7. Fix nits

    lpinca committed May 7, 2020
    Copy the full SHA
    e4b35da View commit details
    Browse the repository at this point in the history
  8. Add tests

    lpinca committed May 7, 2020
    Copy the full SHA
    1d2eabc View commit details
    Browse the repository at this point in the history