https://github.com/fairlytales/websockets
Working with WebSockets using WS library
https://github.com/fairlytales/websockets
express javascript nodejs websocket websocket-library
Last synced: 2 months ago
JSON representation
Working with WebSockets using WS library
- Host: GitHub
- URL: https://github.com/fairlytales/websockets
- Owner: FairlyTales
- License: mit
- Created: 2021-09-17T18:19:50.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-10-13T18:16:25.000Z (over 4 years ago)
- Last Synced: 2025-02-25T07:16:24.459Z (over 1 year ago)
- Topics: express, javascript, nodejs, websocket, websocket-library
- Language: HTML
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WebSockets
Working with WebSockets using the WS library.
## How to launch a project
- Open the `\server` directory and run `npm install` and `npm start` to launch the server side of the app.
- Go into the `\app` directory and open the `index.html` to launch the client side of the app (JS and CSS are inlined in the html, so it could be used without Live Server or other similar tools).
- Click the button in the client side app to send a message to server via a web socket. After the message is received the server will log the received message and send a reply to the client which will be shown in the browser.