not really known
Find a file
dependabot[bot] 348f48b71e
Bump github.com/labstack/echo/v4 from 4.1.15 to 4.9.0
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>
2022-12-08 00:36:54 +00:00
.github/workflows Fix CI 2020-03-28 17:19:03 +03:00
cmd/api Go releaser 2020-03-28 18:37:20 +03:00
pkg Go releaser 2020-03-28 18:37:20 +03:00
.gitignore first commit 2020-03-28 16:55:39 +03:00
.goreleaser.yml Go releaser 2020-03-28 18:37:20 +03:00
go.mod Bump github.com/labstack/echo/v4 from 4.1.15 to 4.9.0 2022-12-08 00:36:54 +00:00
go.sum Bump github.com/labstack/echo/v4 from 4.1.15 to 4.9.0 2022-12-08 00:36:54 +00:00
README.md Update README.md 2020-03-28 17:11:09 +03:00

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