Simple websocket chat server
POST /channel
Content-Type: application/json
{
"payload": {
"title": "New channel"
}
}
Result:
{
"id": "5e7d19b98803c90bcff53f84",
"payload": {
"title": "New channel"
}
}
POST /channel/5e7d19b98803c90bcff53f84
Content-Type: application/json
{
"payload": {
"title": "Old channel"
}
}
Result:
{
"id": "5e7d19b98803c90bcff53f84",
"payload": {
"title": "Old channel"
}
}
GET /channel/5e7d19b98803c90bcff53f84
Result:
{
"id": "5e7d19b98803c90bcff53f84",
"payload": {
"title": "Old channel"
},
"members": [
{"id": 1, "state": ""},
{"id": 2, "state": ""}
]
}
Connect to: /channel/5e7d19b98803c90bcff53f84/ws