Versions in this module Expand all Collapse all v0 v0.0.2 Sep 16, 2021 v0.0.1 Sep 16, 2021 Changes in this version + const BinaryOpcode + const CloseAbnormalClosure + const CloseGoingAway + const CloseInternalServerErr + const CloseInvalidFramePayloadData + const CloseMandatoryExtension + const CloseMessageTooBig + const CloseNoStatusReceived + const CloseNormalClosure + const CloseOpcode + const ClosePolicyViolation + const CloseProtocolError + const CloseServiceRestart + const CloseTLSHandshake + const CloseTryAgainLater + const CloseUnsupportedData + const ContinuationOpcode + const PingOpcode + const PongOpcode + const TextOpcode + type CloseError struct + func (e *CloseError) Error() string + type Conn struct + func Upgrade(w http.ResponseWriter, req *http.Request) (*Conn, error) + func (c *Conn) Close() error + func (c *Conn) NextReader() (frameType byte, r io.Reader, err error) + func (c *Conn) NextWriter(messageType byte) (io.WriteCloser, error) + func (c *Conn) ReadMessage() (messageType byte, payload []byte, err error) + func (c *Conn) WriteMessage(messageType byte, payload []byte) error + type Dialer struct + HandshakeTimeout time.Duration + TLSConfig *tls.Config + func (d *Dialer) Dial(urlStr string) (*Conn, error) + func (d *Dialer) DialContext(ctx context.Context, urlStr string) (*Conn, error) + type HandshakeError struct + func (e HandshakeError) Error() string