tinawebdev / skillbox-chat-server

Simple Chat Server using Sockets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

skillbox-chat-server

Simple Chat Server using Sockets

Requirements

uWebSockets

Usage examples with the browser console

1. New connection

ws = new WebSocket("ws://localhost:8888/");
ws.onmessage = ({data}) => console.log(data);

2. Setting your name

ws.send("SET_NAME::name");

3. Sending direct message

ws.send("DIRECT::11::text message");

3. Sending broadcast message

ws.send("TOALL::text message");

Made with C++ Workshop from Skillbox.

About

Simple Chat Server using Sockets


Languages

Language:C++ 100.0%