Documentation ¶
Overview ¶
Package websocket is responsible for handling WebSocket connections.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsWebSocket ¶
IsWebSocket returns true if the request is to WebSocket.
func IsWebSocketResponse ¶
IsWebSocketResponse checks if the response is a valid 101 Switching Protocols response and the following data should follow the WebSocket protocol.
func NewWebSocket ¶
NewWebSocket returns an io.ReadWriterCloser that can be used to send and receive data to/from a websocket.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.