luiztools / nodejs-websockets

Simple websocket examples in Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nodejs-websockets

Simple websocket examples in Node.js

Meus cursos: https://www.luiztools.com.br/meus-cursos Meus livros: https://www.luiztools.com.br/meus-livros Minhas redes sociais: https:/about.me/luiztools

server

Web Server + WebSocket Server.

Install all dependencies with 'npm i' and create a .env file with PORT and CORS_ORIGIN configs. Values recommended: 3001 and * respectively.

Run with 'npm start'.

Tutorial completo em: https://www.luiztools.com.br/post/como-criar-um-servidor-de-websockets-em-node-js/

client

WebSocket Client.

Install all dependencies with 'npm i'.

Run with 'npm start'.

Tutorial completo em: https://www.luiztools.com.br/post/como-criar-um-cliente-de-websockets-em-node-js/

frontend

Soon.

About

Simple websocket examples in Node.js


Languages

Language:JavaScript 65.3%Language:HTML 22.4%Language:CSS 12.1%Language:Shell 0.2%