Versions in this module Expand all Collapse all v1 v1.0.3 Nov 25, 2022 v1.0.2 Nov 18, 2022 Changes in this version + type Client struct + ClientId string + OnConnect func(C *Client) + OnConnectFail func(C *Client) + OnDisConnect func(C *Client) + OnMessage func(msg UDataSocket, C *Client) + func NewClient(ip string, port int, OnMessage func(msg UDataSocket, C *Client), ...) *Client + func (Me *Client) Connect() + func (Me *Client) DisConnect() + func (Me *Client) ReConnect(second int) + func (Me *Client) SendMsg(msg UDataSocket) error + func (Me *Client) Set(opt string, value interface{}) + type HookEvent struct + EventType string + Message UDataSocket + User *serverUser + type Server struct + ChanHookEvent chan *HookEvent + ClientHeartTimeOut int + Ip string + OnHookEvent func(Msg HookEvent) + Port int + SendFlag int + func NewServer(ip string, port int, OnHookEvent func(Msg HookEvent)) *Server + func (Me *Server) SendMsg(ClientId *string, Msg UDataSocket) error + func (Me *Server) Set(opt string, value interface{}) + type UDataSocket struct + CType int16 + Content []byte + Zlib int8