Documentation
¶
Index ¶
Constants ¶
View Source
const ( OpContinuation = 0 OpText = 1 OpBinary = 2 OpClose = 8 OpPing = 9 OpPong = 10 )
View Source
const ( CloseNormalClosure = 1000 CloseGoingAway = 1001 CloseProtocolError = 1002 CloseUnsupportedData = 1003 CloseNoStatusReceived = 1005 CloseAbnormalClosure = 1006 CloseInvalidFramePayload = 1007 ClosePolicyViolation = 1008 CloseMessageTooBig = 1009 CloseMandatoryExtension = 1010 CloseInternalError = 1011 CloseServiceRestart = 1012 CloseTryAgainLater = 1013 CloseTLSHandshake = 1015 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func NewConnection ¶
func NewConnection(conn net.Conn) *Connection
func Upgrade ¶
func Upgrade(w http.ResponseWriter, r *http.Request) (*Connection, error)
func (*Connection) Close ¶
func (c *Connection) Close() error
type Frame ¶
func NewCloseFrame ¶
func NewTextFrame ¶
func (Frame) MaskPayload ¶
func (f Frame) MaskPayload()
Click to show internal directories.
Click to hide internal directories.