This an example of a basic chat, connecting multiple sockets.
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.
ws://localhost:3000/ws/<user-id>
{
"from": "<user-id>",
"to": "<recipient-user-id>",
"data": "hello"
}