School project
- A simple websocket server for PasteBin use.
- Uses docker for easy deployment.
- Authentication through JWT token.
- Each user has their own private PasteBin that syncs in real time.
- Remember to rename
.env.exampleto.envand change to your login-apis JWT secret.
- All messages are JSON objects, example:
{
"type": "update",
"text": "Hello world"
}the types of the JSON response are:
update= Sending updatesinit= Previous paste if there is in recent memoryerror= Invalid message format
WebSocket Events:
open= Connection establishedmessage= Recive updates from the serverclose= Connection closederror= Any connection error