Versions in this module Expand all Collapse all v0 v0.1.0 Nov 4, 2018 Changes in this version + const OpcodeBinary + const OpcodeText + type WebSocket struct + func Open(address string) (*WebSocket, error) + func UpgradeHTTP(w http.ResponseWriter, r *http.Request) (*WebSocket, error) + func (w WebSocket) Write(b []byte) (int, error) + func (ws *WebSocket) Close() error + func (ws *WebSocket) CloseCode() uint16 + func (ws *WebSocket) Err() error + func (ws *WebSocket) Next() bool + func (ws *WebSocket) Opcode() uint8 + func (ws *WebSocket) Payload() []byte + func (ws *WebSocket) Read(b []byte) (int, error) + func (ws *WebSocket) SetCloseCode(cc uint16) error + func (ws *WebSocket) SetWriteOpcode(opcode uint8)