mirror of
https://gitee.com/blackfox/geekai.git
synced 2025-12-06 08:48:26 +08:00
14 lines
279 B
Go
14 lines
279 B
Go
package service
|
|
|
|
import "geekai/core/types"
|
|
|
|
type WebsocketService struct {
|
|
Clients *types.LMap[string, *types.WsClient] // clientId => Client
|
|
}
|
|
|
|
func NewWebsocketService() *WebsocketService {
|
|
return &WebsocketService{
|
|
Clients: types.NewLMap[string, *types.WsClient](),
|
|
}
|
|
}
|