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