Documentation ¶
Index ¶
Constants ¶
View Source
const ( /** Message with connection options */ MessageTypeOpen = iota /** Close connection and destroy all handle routines */ MessageTypeClose = iota /** Ping request message */ MessageTypePing = iota /** Pong response message */ MessageTypePong = iota /** Empty message */ MessageTypeEmpty = iota /** Emit request, no response */ MessageTypeEmit = iota /** Emit request, wait for response (ack) */ MessageTypeAckRequest = iota /** ack response */ MessageTypeAckResponse = iota )
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.