Skip to content

Real-time messaging server between multiple clients using NodeJS and WebSocket library

Notifications You must be signed in to change notification settings

noumendarryl/real-time-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

real-time-server

Build a real-time messaging server between multiple clients using NodeJS and ws library

Summary

  1. About
  2. Presentation & Examples

1. About

1.1 Installation

This api uses NodeJS version 16.14.2 and some other dependencies the versions of which are :

express :  "^4.18.2",
http : "^0.0.1-security",
nodemon : "^2.0.16",
ws : "^8.11.0"

1.1.1 Install the project dependencies

First, open the project on Visual Studio Code. Once it did, then go to terminal and type :

npm install

1.1.2 Launch the server

To launch the server, just go back to your Visual Studio Code then on terminal and type the following command :

npm start

1.1.3 Open index.html in a browser

In order to test the functioning of this project, open the index.html file in a browser or use the live server feature or extension available in VS Code.

1.2 Contribution

In order to enhance to this project, just make a contribution by doing a pull request. It'll be a great pleasure to receive it.

1.3 Author

NOUMEN Darryl

2 Presentation & Examples

2.1 Structure

After following the instructions above, the project structure may look like this :

project_structure

2.2 Example

Connect yourself by entering your name

result

Connect the other client by entering someone else name

result

Start texting or messaging with the other client

result

About

Real-time messaging server between multiple clients using NodeJS and WebSocket library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published