Skip to content

Conversation

@vipin8797
Copy link

The kind of change this PR does introduce

  • a bug fix
  • a new feature
  • an update to the documentation
  • a code change that improves performance
  • other

Current behavior

The file packages/engine.io/lib/server.ts contains several incomplete or inaccurate JSDoc blocks:

Some methods such as onWebTransportSession() and init() had no JSDoc at all

Some JSDoc blocks were missing @returns tags

Some parameters were missing type information

Several docblocks used incorrect or generic types (Object, string, etc.)

Grammar and clarity issues in existing docblocks

A few descriptions did not accurately reflect the behavior of the method

These inconsistencies reduce overall readability and make TypeScript tooling and editor intellisense less helpful.

New behavior

This PR improves the JSDoc completeness and accuracy within server.ts:

Added full JSDoc block for onWebTransportSession()

Improved JSDoc for attach() (corrected parameter types, added @returns)

Added missing @returns to abortRequest()

Corrected parameter types in multiple docblocks

Improved grammar and clarity in method descriptions

Ensured consistent formatting and sentence punctuation

No functional or behavioral changes were introduced.

Other information (e.g. related issues)

This PR focuses entirely on documentation quality, improving readability and maintainability inside the Engine.IO server code.

There are no related issues.

よろしくお願いします!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant