Versions in this module Expand all Collapse all v0 v0.0.11 Oct 19, 2021 v0.0.10 Sep 28, 2021 Changes in this version + const HeartBeatStep + const MaxMessageSize + const MsgTimeout + const PaddingPackageLength + const PongWait + const Stop + const WriteWait + var WSCloseCodes = []int + func FindRemainder(dataLength int) int + func Signature(data string, remainder int) string + type HeartBeat struct + StopChan chan int8 + type Message struct + Code WsCode + Data string + Message string + Timestamp int64 + func PingMessage() *Message + func (p *Message) Decode(b []byte) error + func (p *Message) Encode() ([]byte, error) + type OperateMessage struct + Data interface{} + Operate int + type WsCode int + const CodeHeartBeat + const CodeWsFailure + const CodeWsSuccess + const OPCodeWsDownloadCorrect + const OPCodeWsDownloadFinish + const OPCodeWsDownloadQuery + const OPCodeWsDownloadTimeout + const OPCodeWsDownloading + const WsInvalidAccess + const WsInvalidOperateCode + const WsPackageError + const WsPackageWrongLength + const WsPackageWrongPrefix + const WsPackageWrongSignature + const WsPackageWrongTime + const WsServerClose + const WsTimeOut + func (i WsCode) String() string