Skip to content

docs: document main namespace shortcuts#5517

Open
nightt5879 wants to merge 1 commit into
socketio:mainfrom
nightt5879:nightt5879/docs-server-main-namespace-shortcuts
Open

docs: document main namespace shortcuts#5517
nightt5879 wants to merge 1 commit into
socketio:mainfrom
nightt5879:nightt5879/docs-server-main-namespace-shortcuts

Conversation

@nightt5879

Copy link
Copy Markdown

Fixes #4608

Summary

  • Document that Server methods like io.on(connection), io.use(...), and io.emit(...) are shortcuts for the main namespace.
  • Add a short io.sockets note for the main namespace property.

Verification

  • npx --yes prettier@3.3.2 --check packages/socket.io/lib/index.ts
  • git diff --check

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.

Docs: Document io.on, io.use etc in the Server API docs

1 participant