Documentation
¶
Index ¶
Constants ¶
View Source
const ( MessageTypeOpen = iota MessageTypeClose MessageTypePing MessageTypePong MessageTypeEmpty MessageTypeEmit MessageTypeAckRequest MessageTypeAckResponse )
View Source
const ( CloseMessage = "1" PingMessage = "2" PongMessage = "3" )
Variables ¶
View Source
var ( ErrorWrongMessageType = errors.New("Wrong message type") ErrorWrongPacket = errors.New("Wrong packet") )
Functions ¶
func MustEncode ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.