readyyyk / chapy-server

Server application for ChaPy Project (mostly handling ws events) https://github.com/readyyyk/ChaPy

Home Page:https://chapy-server-beta.fly.dev/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Http routes

  • /:room/connect?name=<name to check> - check if the name
  • /:room/names

WS Events

{
  "event": "string",
  "data": "stringified data object"
}

Data objects must be stringified:

WRONG ❌

"data": {
  "detail": "connected",
  "name": "qwe"             // only for "connected"
}

RIGHT ✅

"data":"{\"detail\":\"connected\",\"name\":\"qwe\"}"

Message

{
  "event": "message",
  "data": "\"text\":\"message text goes here\"}"
}

Connection

examples:

{
  "event": "connection",
  "data": "{\"detail\": \"connected\", \"name\": \"qwe\"}"
}
{
  "event": "connection",
  "data": "{\"detail\":\"disconnected\", \"name\":\"qwe\"}"
}

About

Server application for ChaPy Project (mostly handling ws events) https://github.com/readyyyk/ChaPy

https://chapy-server-beta.fly.dev/docs

License:MIT License


Languages

Language:Python 98.6%Language:Dockerfile 1.4%