Skip to content

neonxp/wsbroadcast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Websocket broadcaster Build and Test

Simple websocket chat server

Create channel

POST /channel
Content-Type: application/json

{
  "payload": {
    "title": "New channel"
  }
}

Result:

{
  "id": "5e7d19b98803c90bcff53f84",
  "payload": {
    "title": "New channel"
  }
}

Update channel

POST /channel/5e7d19b98803c90bcff53f84
Content-Type: application/json

{
  "payload": {
    "title": "Old channel"
  }
}

Result:

{
  "id": "5e7d19b98803c90bcff53f84",
  "payload": {
    "title": "Old channel"
  }
}

Get channel

GET /channel/5e7d19b98803c90bcff53f84

Result:

{
  "id": "5e7d19b98803c90bcff53f84",
  "payload": {
    "title": "Old channel"
  },
  "members": [
    {"id": 1, "state": ""},
    {"id": 2, "state": ""}
  ]
}

Websocket

Connect to: /channel/5e7d19b98803c90bcff53f84/ws

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages