not really known
348f48b71e
Bumps [github.com/labstack/echo/v4](https://github.com/labstack/echo) from 4.1.15 to 4.9.0. - [Release notes](https://github.com/labstack/echo/releases) - [Changelog](https://github.com/labstack/echo/blob/master/CHANGELOG.md) - [Commits](https://github.com/labstack/echo/compare/v4.1.15...v4.9.0) --- updated-dependencies: - dependency-name: github.com/labstack/echo/v4 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.github/workflows | ||
cmd/api | ||
pkg | ||
.gitignore | ||
.goreleaser.yml | ||
go.mod | ||
go.sum | ||
README.md |
Websocket broadcaster
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