Versions in this module Expand all Collapse all v0 v0.0.1 Dec 7, 2021 Changes in this version + type CheckThread int + const All + const FirstOnly + type ClientURL struct + Host string + Origin string + Password string + Path string + Port int + Scheme string + Username string + WithAuth bool + type IWebsocketClient interface + ChangeURL func(ClientURL, bool, ClientURL) + Close func(int) + CloseAll func() + Destroy func() + New func(*WebsocketClientOption) + Send func(msg []byte) + SendGob func(interface{}) + SendGobID func(idx int, msg interface{}) + SendID func(idx int, msg []byte) + SendJSON func(interface{}) + SendJSONID func(idx int, msg interface{}) + type WebsocketClient struct + type WebsocketClientOption struct + CheckInterval time.Duration + CheckThread CheckThread + Counter *counter.RateCounter + EnableCompression gob.CompressType + NoOfThreads int + OnClose func(string, int, error) + OnConnect func(string, int) + OnDestroy func(string, int, error) + OnError func(string, int, error) + OnMessage func(string, int, *[]byte) + OnTickerTimeOut func(string, int, time.Time, time.Duration) + Prefix string + ProxyURL ClientURL + SocketURL ClientURL + TimeOutMsg time.Duration + TimeOutReconnect time.Duration + UseProxy bool + UserAgent string