Skip to content

s-atwood/WebSocket-Echo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

WebSocket-Echo

This app uses a vite React project for the frontend and a Node.js server for the backend. To use the app, simply type a message in the text field and submit it. This will send the messge to the server which will then send the message back and be displayed as a browser alert.

To set up project, open two terminal instances:

  • In first terminal instance:
    • From project root, cd serverto change into server directory
    • npm install to install "ws" dependency
    • node server.js to start backend server
  • In second terminal instance:
    • From project root, cd client to switch to client directory
    • npm run dev to start client server
    • Open localhost:5173 in browser

About

Uses WebSockets with React and Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published