Versions in this module Expand all Collapse all v0 v0.1.0 Jan 17, 2021 v0.0.1 Jan 16, 2021 Changes in this version + const BinaryFrame + const CloseFrame + const ContinuationFrame + const PingFrame + const PongFrame + const TextFrame + type Conn struct + func Dial(network, address, path string, config *tls.Config) (*Conn, error) + func Upgrade(conn net.Conn, config *tls.Config) (*Conn, error) + func UpgradeHTTP(w http.ResponseWriter, r *http.Request) (*Conn, error) + func (c *Conn) Close() error + func (c *Conn) LocalAddr() net.Addr + func (c *Conn) Read(b []byte) (n int, err error) + func (c *Conn) ReadMessage() (p []byte, err error) + func (c *Conn) ReadTextMessage() (p string, err error) + func (c *Conn) ReceiveMessage(v interface{}) (err error) + func (c *Conn) RemoteAddr() net.Addr + func (c *Conn) SendMessage(v interface{}) (err error) + func (c *Conn) SetConcurrency(concurrency func() int) + func (c *Conn) SetDeadline(t time.Time) error + func (c *Conn) SetReadDeadline(t time.Time) error + func (c *Conn) SetWriteDeadline(t time.Time) error + func (c *Conn) Write(b []byte) (n int, err error) + func (c *Conn) WriteMessage(b []byte) (err error) + func (c *Conn) WriteTextMessage(b string) (err error) + type Handler func(*Conn) + func (handler Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)