Skip to content

webprogramming260/webSocketChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

websocket-chat

Example of using WebSocket to create a simple peer chat program.

To use the example you must already have Node.js installed.

  1. Clone this repository to your development environment.
  2. Open a console window and execute the following:
    (cd service && npm install)
    npm install
  3. Start the backend in VS Code
    1. Open the project in VS Code
    2. Open the service/service.js file.
    3. Press F5 to start debugging. Choose Node.js as the debugging target.
  4. Start the backend running from a console window
    1. Change directory into the project root.
    2. Run npm run dev.
  5. Use websocket chat
    1. Open two web browser windows to http://localhost:5173.
    2. Start using the chat interface to send messages between the windows.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published