mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-17 08:46:38 +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](),
|
|
}
|
|
}
|