Mini Projeto de um chat-app usando o protocolo WebSocket através da lib 'ws' do node.js

Overview

CHAT-APP-WEBSOCKET

Mini Projeto de um chat-app usando o protocolo WebSocket através da lib 'ws' do node.js

Obs o intuito deste projeto não é o frontend e sim o backend com a criação e configuração do servidor websocket, usei o minimo de front apenas para possibilitar o uso to app pelo navegador e assim ser mais acessivel ao inves de um executavel.


Link para acessar ao chat-app hospedado na heroku

🎯 Objetivo

Praticar o que estudei sobre o protocolo websocket.

📚 Materiais de estudo:


🛠 Tools...

Express Node.js Module Usado para criar um servidor Http para distribuir funcionalidades client e ancorar o servidor WebSocket;

WS Node.js Module Responsavel por disponibilizar o uso do protocolo websocket na ferramenta Node.js


💬 Chat-App

Link para acessar ao chat-app hospedado na heroku

Dica: caso queira testar e não tem paciencia para esperar algum outro usuario entrar no chat, acesse de outros dispositivos ou novas abas de seu navegador. 🤳



Rodando na localhost

Caso o app estejá fora do ar ou queira acessar da sua própria maquina

Clonando repositorio e acessando diretorio do projeto

git clone https://github.com/Noctho01/chat-app-websocket.git
cd chat-app-websocket

Instalando dependencias

npm i

iniciando servidor na porta 3000

npm run app

Acesse localhost:3000/ em seu navegador



Vinicius dos Santos Rodrigues

[email protected]

linkedin

You might also like...

The cutest little WebSocket wrapper! 🧦

The cutest little WebSocket wrapper! 🧦

Sockette The cutest little WebSocket wrapper! 🧦 Sockette is a tiny (367 bytes) wrapper around WebSocket that will automatically reconnect if the conn

Jan 2, 2023

A Develop Tool to Test WebSocket, Socket.IO, Stomp, Bayeux, HTTP, TCP, UDP, WebRTC, DNS API.

A Develop Tool to Test WebSocket, Socket.IO, Stomp, Bayeux, HTTP, TCP, UDP, WebRTC, DNS API.

Sep 6, 2022

WebSocket cat

WebSocket cat

Jan 2, 2023

A tiny Nuxt.js module for WebSocket interactions

@deepsource/nuxt-websocket A tiny Nuxt.js module for WebSocket interactions. This module is only compatible with Nuxt v2 at the moment. Setup Add @dee

Dec 6, 2022

A websocket-based reverse shell for XSS attacks.

A websocket-based reverse shell for XSS attacks.

CrossSiteShell A javascript/nodejs "reverse shell" that makes it easier to interact with the victim's browser during XSS attacks. Usage Run the follow

Oct 7, 2022

Um bot feito utilizando a API baileys em WebSocket para o Whatsapp Multi-Devices.

Um bot feito utilizando a API baileys em WebSocket para o Whatsapp Multi-Devices.

Informação 📀 O BaileysBot foi feito utilzando a API Baileys Caso encontre algum BUG, faça um Novo Issue! Requisitos 📝 NodeJS Git Instalação 💾 Para

Dec 3, 2022

Node.js library to receive live stream chat events like comments and gifts in realtime from TikTok LIVE.

TikTok-Live-Connector A Node.js library to receive live stream events such as comments and gifts in realtime from TikTok LIVE by connecting to TikTok'

Jan 4, 2023

simple chat app created with nextjs, express, tailwindcss, and WebSockets

This is a Next.js project bootstrapped with create-next-app. Getting Started First, run the development server: npm run dev # or yarn dev Open http://

Sep 10, 2022

Create a Real-time Chat App using React and Socket.io

React And Socket.io ChatApp MIT Licence MIT License Copyright (c) 2021 Ali Ahmad Permission is hereby granted, free of charge, to any person obtaining

Jan 10, 2022
Releases(1.0.0)
Owner
Vinicius dos Santos Rodrigues
Autodidata - Desenvolvimento Web - Back-End - Junior
Vinicius dos Santos Rodrigues
How to build a chat using Lambda + WebSocket + API Gateway? (nodejs)

Description Source code for the lambda function from the screencast How to build a chat using Lambda + WebSocket + API Gateway? (nodejs) The reactjs c

Alex 21 Dec 28, 2022
SpaceChat - a realtime chat app that allows you to chat with your friends in pairs as well as in groups

A socket.io based real time chat app where you can perform one-to-one chats as well as group chats! Built using MERN stack, this project implements all core functionalities like User Authentication, Web Sockets, CRUD Operations, Routing and much more!

Ishant Chauhan 11 Aug 1, 2022
Chotu Chat Room is a minimal, distraction-free chat application

Chotu Chat Room is a minimal, distraction-free chat application. We have some predefined channels that anyone can join. No registration/login required.

Chotu Projects 8 Sep 19, 2022
A node.js module for websocket server and client

Nodejs Websocket A nodejs module for websocket server and client How to use it Install with npm install nodejs-websocket or put all files in a folder

Guilherme Souza 719 Dec 13, 2022
A WebSocket Implementation for Node.JS (Draft -08 through the final RFC 6455)

WebSocket Client & Server Implementation for Node Overview This is a (mostly) pure JavaScript implementation of the WebSocket protocol versions 8 and

Brian McKelvey 3.6k Dec 30, 2022
WebSocket emulation - Node.js server

SockJS-node SockJS for enterprise Available as part of the Tidelift Subscription. The maintainers of SockJS and thousands of other packages are workin

SockJS 2.1k Dec 29, 2022
Simple to use, blazing fast and thoroughly tested WebSocket client and server for Node.js

ws: a Node.js WebSocket library ws is a simple to use, blazing fast, and thoroughly tested WebSocket client and server implementation. Passes the quit

WebSockets 19.2k Jan 4, 2023
This Repository implements an Authenticated Websocket Server built in Node Js along ws library.

websockets-authentication-server This Repository implements an Authenticated Websocket Server built in Node Js along ws library. Features Authenticate

M.Abdullah Ch 7 May 5, 2023
Lightweight WebSocketServer wrapper lib using ws-wrapper to wrap connected WebSockets

ws-server-wrapper Lightweight WebSocketServer wrapper lib using ws-wrapper and ws to wrap connected WebSockets. The only dependency is ws-wrapper itse

Blake Miner 17 May 9, 2022
Standards-compliant WebSocket client and server

faye-websocket This is a general-purpose WebSocket implementation extracted from the Faye project. It provides classes for easily building WebSocket s

null 588 Dec 23, 2022