Versions in this module Expand all Collapse all v1 v1.0.0 Oct 16, 2019 Changes in this version + const CloseMessage + const MessageTypeAckRequest + const MessageTypeAckResponse + const MessageTypeClose + const MessageTypeEmit + const MessageTypeEmpty + const MessageTypeOpen + const MessageTypePing + const MessageTypePong + const PingMessage + const PongMessage + var ErrorWrongMessageType = errors.New("Wrong message type") + var ErrorWrongPacket = errors.New("Wrong packet") + func Encode(msg *Message) (string, error) + func MustEncode(msg *Message) string + type Message struct + AckId int + Args string + Method string + Source string + Type int + func Decode(data string) (*Message, error)