faet: 新增WS模块
This commit is contained in:
1 parent
413f0b4951
commit
89499c9d28
12 files changed
+673
No files matched your search
@@ -0,0 +1,10 @@
|
||||
package service
|
||||
|
||||
// IWSSend WebSocket消息发送处理 服务层接口
|
||||
type IWSSend interface {
|
||||
// ByClientID 给已知客户端发消息
|
||||
ByClientID(clientID string, data any) error
|
||||
|
||||
// ByGroupID 给订阅组的用户发送消息
|
||||
ByGroupID(gid string, data any) error
|
||||
}
|
||||
Reference in new issue
Block a user