Skip to content

JonSchwartzDev/react-websockets-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This project folder contains the code for both the server and client. There's about 40 lines of js in the server, and 100 in the client.

Both of them use the w3cwebsockets library.

The client app uses React with class components, and React components from the Ant Design library.

To use the project:

  1. Go to the webSocketServer folder
  2. npm install
  3. npm run start
  4. keep the server running
  1. Go to the webSocketClient folder
  2. npm install
  3. npm run start

Open http://localhost:1992 in multiple tabs, log in and send and see messages flowing between the tabs as you send them in each

About

Server app for w3c socket communication. Client React app for sending and receiving chat messages through the Server app. 150 lines of JavaScript for all that functionality.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors