Skip to content

sumitnair26/Websockets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebSocket With NodeJS

There are various libraries that let you create a ws server (similar to how express lets you create an HTTP server)

  1. https://www.npmjs.com/package/websocket

  2. https://github.com/websockets/ws

  3. https://socket.io/

We’ll be using the ws library today.

Getting Started

To run this project locally, follow these steps:

  1. Clone the repository:
git clone https://github.com/sumitnair26/Websockets
  • Navigate to the project directory:

      cd Websockets
    
  • Install dependencies:

      npm install
    
  • Run the development server:

      tsc -b
      
      node dist/index.js
    

To Run Websockets from Browser

To Run Websockets from Front End React APP

  • Navigate to the Frontend directory:

    cd frontend
    
  • Install dependencies:

    npm install
    
  • Run the development server:

       npm run dev
    

The application will start at http://localhost:5174/ by default.

Tech Stack

  • TypeScript

  • Node.js

  • React.js

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or create a pull request.

Screenshot's

image

image

image

image

image

image

image

About

Websockets with NodeJS, ReactJS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors