# Functions
ControlFrameHandler returns FrameHandlerFunc for handling control frames.
No description provided by the author
NewCipherReader creates xor-cipher reader from r with given mask.
NewCipherWriter creates xor-cipher writer to w with given mask.
NewClientSideReader is a helper function that calls NewReader with r and ws.StateClientSide.
NewReader creates new frame reader that reads from r keeping given state to make some protocol validity checks when it needed.
NewServerSideReader is a helper function that calls NewReader with r and ws.StateServerSide.
NextReader prepares next message read from r.
ReadHeader reads a frame header from r.
# Structs
CipherReader implements io.Reader that applies xor-cipher to the bytes read from source.
CipherWriter implements io.Writer that applies xor-cipher to the bytes written to the destination writer.
ControlHandler contains logic of handling control frames.
Reader is a wrapper around source io.Reader which represents WebSocket connection.