Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/The-L3rNa3aN/WebSockets_SimpleClientServer
Just a simple chat app between a client and server using websockets.
https://github.com/The-L3rNa3aN/WebSockets_SimpleClientServer
javascript node node-js nodejs websocket websockets websockets-chat websockets-client websockets-server websocketserver
Last synced: 17 days ago
JSON representation
Just a simple chat app between a client and server using websockets.
- Host: GitHub
- URL: https://github.com/The-L3rNa3aN/WebSockets_SimpleClientServer
- Owner: The-L3rNa3aN
- License: mit
- Created: 2024-10-04T17:29:17.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-19T19:25:43.000Z (about 1 month ago)
- Last Synced: 2024-11-23T16:12:09.883Z (about 1 month ago)
- Topics: javascript, node, node-js, nodejs, websocket, websockets, websockets-chat, websockets-client, websockets-server, websocketserver
- Language: JavaScript
- Homepage:
- Size: 178 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WebSockets_SimpleClientServer
Just a simple chat app between a client and server using websockets. Made for myself in order to understand how websockets worked.I'll do the same thing for socket.io as well.
## How To Run
Run two instances of your CLI, each directed to the "client" and "server" folders respectively and run the command `node index.js` on the both of them.## Log of the things I did: -
~~Currently works well with Postman acting as a client. Run "node index.js" for starting the server.~~
~~Simple client and server programmed but needs to be run in separate CLI instances. Written messages can be sent from the server to clients but needs more work.~~
~~Server messaging transmits across all clients but too many events created server side. Needs a fix! Also need to implement client nametags and messaging.~~
~~Clients now have names but it can be done better. Client messages however are not broadcast to the everyone. Need to do that.~~
~~Messages are now broadcast to everyone in the server! Need to handle messages on a client disconnecting. Should I try making some kind of server browser?~~
~~Tried making the project run with Webpack and Serve.~~
~~Trying to have Webpack and Websockets to run together but in vain. This part is gonna be lengthy.~~
~~Fuck it. Gotta start over.~~
~~Major overhaul accomplished. Only server frontend is remaining, along with some polishing.~~
Started server frontend. Messages sent between the server and the clients are coming as Blobs and I wonder why.