Documentation
¶
Index ¶
Constants ¶
View Source
const (
LittleEndian = false
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Processor ¶
type Processor interface {
// must goroutine safe
Route(msg interface{}, userData interface{}) error
// must goroutine safe
Unmarshal(data []byte) (interface{}, error)
UnmarshalMul(nType int, data []byte) (interface{}, error)
// must goroutine safe
Marshal(msg interface{}) (*common.TWSData, error)
// 是否使用压解包模式
UsePacketMode() bool
}
type WSClient ¶
type WSConn ¶
type WSConn struct {
sync.Mutex
//add by hl
SessionId string
AppParam common.TAppParam
AppURL string
CookieVal string
// contains filtered or unexported fields
}
func (*WSConn) RemoteAddr ¶
type WSServer ¶
type WebsocketConnSet ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.