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

Adding TypeScript boilerplate code with authentication, room, and namespace examples #4674

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ahsanaasim
Copy link

What's in this pull request?

This pull request adds a TypeScript boilerplate code to Socket.IO, which includes an example of authentication to secure the socket server and usage examples for rooms and namespaces.

The example consists of

  • A basic auth implementation for Socket.IO
  • A Socket class that creates namespaces and rooms
  • Examples demonstrating how to emit messages within a room and globally.
  • A blog post created by me that explains the entire process and can be found in the README file.

This code can help other developers to build more secure and scalable Socket.IO applications with TypeScript.

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.

3 participants