You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
348 B
23 lines
348 B
|
1 year ago
|
package webstocetmsg
|
||
|
|
|
||
|
|
import (
|
||
|
|
"github.com/gorilla/websocket"
|
||
|
|
)
|
||
|
|
|
||
|
|
type WebSocketClientBase struct {
|
||
|
|
ID string
|
||
|
|
Conn *websocket.Conn
|
||
|
|
LastHeartbeat int64
|
||
|
|
BindUid string
|
||
|
|
JoinGroup []string
|
||
|
|
}
|
||
|
|
|
||
|
|
type WebSocketUserBase struct {
|
||
|
|
Uid string
|
||
|
|
ClientID []string
|
||
|
|
}
|
||
|
|
|
||
|
|
type WebSocketGroupBase struct {
|
||
|
|
ClientID []string
|
||
|
|
}
|