Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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