Visitar URL original
MessagePort `close` event removed from the HTML spec · Issue #66460 · nodejs/node · GitHub
Skip to content

MessagePort close event removed from the HTML spec #66460

Description

@nicolo-ribaudo

This issue is just informative, feel free to close it if you think there is no action needed.

HTML just removed the close event from MessagePort (whatwg/html#13016), which Node.js implements (https://nodejs.org/api/worker_threads.html#event-close).

I don't know how similar the web MessagePort and Node.js MessagePort classes are, but you might want to consider whether to deprecate the event in Node.js or not.

Activity

  1. jasnell commented on Oct 3, 2026

    @jasnell
    Member

    Our implementation (MessagePortCloseEvent) is really only a loose approximation to the spec. Deprecating is likely fine... likely as a documentation-only for now.

    /cc @addaleax

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions