Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lwnmengjing/pushmessage
Go implement message push
https://github.com/lwnmengjing/pushmessage
golang websocket
Last synced: 4 months ago
JSON representation
Go implement message push
- Host: GitHub
- URL: https://github.com/lwnmengjing/pushmessage
- Owner: lwnmengjing
- Created: 2018-10-11T14:02:36.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-08-15T03:03:42.000Z (over 1 year ago)
- Last Synced: 2024-10-12T12:52:27.373Z (4 months ago)
- Topics: golang, websocket
- Language: Go
- Size: 7.81 KB
- Stars: 13
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pushMessage
Go消息推送### 实现功能
>
- 对点消息推送
- 全覆盖消息推送
- 客户端离线保存消息
- 客户端重连后消息不丢失
- 服务端心跳
- 自定义启动端口### api
|路由|请求方式|body|参数|说明|
|---:|---:|---:|---:|---:|
|/message|post| json(消息)|-|推送消息给全部客户端,包括离线未销毁客户端|
|/message/:id|post| json(消息)|:id 为client标记|推送消息给指定客户端, 包括离线未销毁客户端|
|/client/:id|websocket| -|:id 为client标记|websocket客户端连接|
|/client/:id|delete| -|:id 为client标记|销毁已经连接过的客户端|