Skip to content

Latest commit

History

History
20 lines (16 loc) 路 442 Bytes

README.md

File metadata and controls

20 lines (16 loc) 路 442 Bytes

Disclaimer:

This an example of a basic chat, connecting multiple sockets.

Websocket Chat Example

With this example, you can create a simple chatroom using Websockets. This example supports multiple users and allows them to send messages to each other.

Connect to the websocket

ws://localhost:3000/ws/<user-id>

Message object example

{
"from": "<user-id>",
"to": "<recipient-user-id>",
"data": "hello"
}