Skip to content

MagicTINTIN/chaline-websocket

Repository files navigation

Chaline's websocket

The configuration file that store the different rooms of the websocket
configs.json

{
    "name": "Chaline configuration",
    "rooms": [
        "/home/user/Documents/code/rust/chaline-websocket/micasend-ws.json",
        "/home/user/Documents/code/rust/chaline-websocket/nokertu-ws.json"
    ]
}

Each room configuration is defined like this

  • Broadcast mode with authorized messages with a different reply
{
    "name":"MicaSend",
    "type":"broadcast",
    "prefix":"micasend",
    "map": {
        "new micasend message":"new message notification",
        "ping":"pong"
    }
}
  • Groups mode with some messages authorized (that will be broadcasted)
{
    "name":"Clavardons",
    "type":"group",
    "prefix":"clavardons",
    "fetchURL":"clavardons.magictintin.fr/api/ws/group?id=",
    "authorized": ["join", "leave"]
}
  • NOT IMPLEMENTED YET Individual mode with all messages allowed ("authorized": [])
{
    "name":"JIRSend",
    "type":"individual",
    "prefix":"jirsend",
    "fetchURL":"jirsend.magictintin.fr/api/ws/user?id="
}

About

Websocket with configurable broadcast rooms/groups

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •