https://github.com/lwnmengjing/pushmessage
Go implement message push
https://github.com/lwnmengjing/pushmessage
golang websocket
Last synced: about 1 year 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 7 years ago)
- Default Branch: main
- Last Pushed: 2023-08-15T03:03:42.000Z (almost 3 years ago)
- Last Synced: 2025-03-02T00:24:55.519Z (over 1 year ago)
- Topics: golang, websocket
- Language: Go
- Size: 7.81 KB
- Stars: 14
- 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标记|销毁已经连接过的客户端|