Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConnectionIndex = make(map[string]map[string]string, 0)
View Source
var ConnectionPool = make(map[string]*websocket.Conn, 0)
Functions ¶
func OnNativeMessage ¶
* 处理接收的消息
Types ¶
type WebsocketConnPool ¶
type WebsocketConnPool struct {
// contains filtered or unexported fields
}
func GetWebsocketConnPool ¶
func GetWebsocketConnPool() *WebsocketConnPool
func (*WebsocketConnPool) Connect ¶
func (this *WebsocketConnPool) Connect(conn *websocket.Conn)
func (*WebsocketConnPool) Disconnect ¶
func (this *WebsocketConnPool) Disconnect(connectSessionId string)
func (*WebsocketConnPool) GetRemoteConn ¶
func (this *WebsocketConnPool) GetRemoteConn(connectSessionId string) *websocket.Conn
type WsClient ¶
type WsClient struct {
// contains filtered or unexported fields
}
func NewWsClient ¶
func NewWsClient(schema string, ip string, port string, path string, timeout time.Duration) *WsClient
构造函数
func (*WsClient) Disconnect ¶
func (this *WsClient) Disconnect()
func (*WsClient) OnClientNativeMessage ¶
* 处理接收的消息
Click to show internal directories.
Click to hide internal directories.