Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fabogit/web-socket
Websocket implementation
https://github.com/fabogit/web-socket
socket-io websocket
Last synced: 8 days ago
JSON representation
Websocket implementation
- Host: GitHub
- URL: https://github.com/fabogit/web-socket
- Owner: fabogit
- Created: 2024-03-09T16:23:50.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-12T22:57:57.000Z (10 months ago)
- Last Synced: 2024-11-06T20:37:48.224Z (about 2 months ago)
- Topics: socket-io, websocket
- Language: HTML
- Homepage:
- Size: 57.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# web-socket
use node ver 20
## 01 - native-ws
Will use the native browser `WebSocket` api and node `ws` to create a websocket connection
- install server packages: `npm i`
- run server: `npm run start:dev`
- open `ws-browser-api.html` file to connect the client to ws server (and check the browser console)o
## 02 - socket.IO
Will use `socket.io` (client & server) to create a websocket connection
- install server packages: `npm i`
- run server: `npm run start:dev`
- in the browser go to `localhost:8000/client.html` to connect the client to ws server (and check the browser console)
## 03 - Chat
Will use `socket.io` (client & server) to create a websocket connection
- install server packages: `npm i`
- run server: `npm run start:dev`
- in the browser go to `http://localhost:8000/chat.html` to connect the client to ws server, open as many tabs as you want
## 04
npm i
npx nodemon slack-clone/slack.js