Documentation ¶
Overview ¶
Package gorilla implements a websocket connection by wrapping gorilla/websocket.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
Conn implements the Conn interface by wrapping a gorilla/websocket Conn.
func (*Conn) IsNormalClose ¶
IsNormalClose determines if the error message is not an unexpected close error.
func (*Conn) ReadMessage ¶
ReadMessage reads the next message from the GorillaConnection.
func (*Conn) WriteClose ¶
WriteClose writes a close message on the connection. The connestion is NOT closed.
func (*Conn) WriteMessage ¶
WriteMessage writes the message as json to the GorillaConnection.
type Upgrader ¶
Upgrader implements the socket.Upgrader interface by wrapping a gorilla/websocket Upgrader.
func NewUpgrader ¶
func NewUpgrader() *Upgrader
NewUpgrader returns a upgrader tha creates gorilla websocket connections.
Click to show internal directories.
Click to hide internal directories.