Skip to content

Standardize ready event for built-in streams #19304

Description

@addaleax

Currently, various internal streams have different events that indicate that the underlying resource has successfully been established:

  • fs streams use the open event once the file descriptor is available
  • net.Sockets use the connect event once the socket has been established
  • Http2Streams use the ready event once the underlying http/2 session is established

I would like to suggest standardizing on emitting ready for all of these streams, i.e. emitting ready for fs streams and network sockets in addition to the event names they currently use.

If there are no objections, I think this makes for a good first contribution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues requesting new Node.js features.fsIssues and PRs related to file-system APIs and the fs module.good first issueIssues that are suitable for first-time contributors.http2Issues and PRs related to the http2 subsystem.netIssues and PRs related to the net subsystem.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions