Documentation ¶
Index ¶
Constants ¶
View Source
const (
PingPeriodContextKey = PingPeriodContext("pingPeriod")
)
Variables ¶
This section is empty.
Functions ¶
func IsWebSocketUpgrade ¶
IsWebSocketUpgrade checks to see if the request is a WebSocket connection.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) Close ¶
func (c *Conn) Close()
Close waits for the current write to finish. Further writes will return error
type GorillaConn ¶
GorillaConn is a wrapper around the standard gorilla websocket but implements a ReadWriter This is still used by access carrier
func (*GorillaConn) Read ¶
func (c *GorillaConn) Read(p []byte) (int, error)
Read will read messages from the websocket connection
func (*GorillaConn) SetDeadline ¶
func (c *GorillaConn) SetDeadline(t time.Time) error
SetDeadline sets both read and write deadlines, as per net.Conn interface docs: "It is equivalent to calling both SetReadDeadline and SetWriteDeadline." Note there is no synchronization here, but the gorilla implementation isn't thread safe anyway
type PingPeriodContext ¶
type PingPeriodContext string
Click to show internal directories.
Click to hide internal directories.