Skip to content

Repository files navigation

pastebin-websocket

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.example to .env and change to your login-apis JWT secret.

Format:

  • All messages are JSON objects, example:
{
  "type": "update",
  "text": "Hello world"
}

the types of the JSON response are:

  • update = Sending updates
  • init = Previous paste if there is in recent memory
  • error = Invalid message format

WebSocket Events:

  • open = Connection established
  • message = Recive updates from the server
  • close = Connection closed
  • error = Any connection error

About

Course project, websocket for a pastebin

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages