Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrHeaderLengthMSB = fmt.Errorf("header error: the most significant bit must be 0") ErrHeaderLengthUnexpected = fmt.Errorf("header error: unexpected payloadBuffer length bits") )
Errors used by frame reader.
Functions ¶
func HandlePing ¶
HandlePing answers a ping message with a pong message
func ReadHeader ¶
ReadHeader reads a frame header from r.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.