https://github.com/erickgbr/chatwebsockets
Chat con web Sockets (socket.io, node y JS)
https://github.com/erickgbr/chatwebsockets
fronted js node socket-io websocket
Last synced: about 2 months ago
JSON representation
Chat con web Sockets (socket.io, node y JS)
- Host: GitHub
- URL: https://github.com/erickgbr/chatwebsockets
- Owner: ErickGBR
- Created: 2021-01-14T12:55:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-21T03:34:41.000Z (over 5 years ago)
- Last Synced: 2025-02-19T19:16:18.418Z (over 1 year ago)
- Topics: fronted, js, node, socket-io, websocket
- Language: JavaScript
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# chat
Ejemplo de chat con web Sockets Socket.io Node.js, JavaScript
1-Clona el repositorio
2-pon el comando: npm i
3-ejecutamos: node index.js
Ahora en el navegador ponemos
http://localhost:6677
Esta es la url por defecto, si deseas cambiarla es a tu elección!!
Si no te funciona asi, prueba cambiando el número de puerto, puede que el 6677 ya esté siendo ocupado
Con el chat puedes tener muchas pestañas abiertas con diferente nickname y todo se mostrará en el chat de acuerdo a tu nick
Lo que hace es que guarda los datos en el JSON (Simulando una db, le da la estructura), es solamente para fines educativos
Como funciona un chat en tiempo real con Web Sockets de Socket.io