Documentation ¶ Index ¶ type Conn func NewClient(c net.Conn, u *url.URL) (*Conn, error) func Upgrade(w http.ResponseWriter, r *http.Request) (*Conn, error) func (c *Conn) WriteMessage(messageType int, data []byte) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Conn ¶ type Conn struct { *websocket.Conn // contains filtered or unexported fields } func NewClient ¶ func NewClient(c net.Conn, u *url.URL) (*Conn, error) func Upgrade ¶ func Upgrade(w http.ResponseWriter, r *http.Request) (*Conn, error) func (*Conn) WriteMessage ¶ added in v1.5.7 func (c *Conn) WriteMessage(messageType int, data []byte) error Source Files ¶ View all Source files websocket.go Click to show internal directories. Click to hide internal directories.