Versions in this module Expand all Collapse all v1 v1.24.10 Oct 24, 2017 v1.24.9 Oct 24, 2017 Changes in this version + const Base64ChannelWebSocketProtocol + const ChannelWebSocketProtocol + func IgnoreReceives(ws *websocket.Conn, timeout time.Duration) + func IsWebSocketRequest(req *http.Request) bool + func NewDefaultChannelProtocols(channels []ChannelType) map[string]ChannelProtocolConfig + func NewDefaultReaderProtocols() map[string]ReaderProtocolConfig + type ChannelProtocolConfig struct + Binary bool + Channels []ChannelType + type ChannelType int + const IgnoreChannel + const ReadChannel + const ReadWriteChannel + const WriteChannel + type Conn struct + func NewConn(protocols map[string]ChannelProtocolConfig) *Conn + func (conn *Conn) Close() error + func (conn *Conn) Open(w http.ResponseWriter, req *http.Request) (string, []io.ReadWriteCloser, error) + func (conn *Conn) SetIdleTimeout(duration time.Duration) + type Reader struct + func NewReader(r io.Reader, ping bool, protocols map[string]ReaderProtocolConfig) *Reader + func (r *Reader) Copy(w http.ResponseWriter, req *http.Request) error + func (r *Reader) SetIdleTimeout(duration time.Duration) + type ReaderProtocolConfig struct + Binary bool