Documentation ¶
Index ¶
- Variables
- type NetConn
- func (c *NetConn) Close() error
- func (c *NetConn) LocalAddr() net.Addr
- func (c *NetConn) Read(b []byte) (int, error)
- func (c *NetConn) RemoteAddr() net.Addr
- func (c *NetConn) SetDeadline(t time.Time) error
- func (c *NetConn) SetReadDeadline(t time.Time) error
- func (c *NetConn) SetWriteDeadline(t time.Time) error
- func (c *NetConn) Write(b []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUnexpectedMsgType is returned when a reader is returned by the websocket // connection that does not match the message type NetConn was created with ErrUnexpectedMsgType = errors.New("unexpected message type") )
Functions ¶
This section is empty.
Types ¶
type NetConn ¶
type NetConn struct {
// contains filtered or unexported fields
}
func NewNetConn ¶
NewNetConn returns a NetConn pointer. It takes a gorilla websocket connection and a message type. See: https://github.com/gorilla/websocket/blob/v1.4.2/conn.go#L62 for possible values
func (*NetConn) RemoteAddr ¶
Click to show internal directories.
Click to hide internal directories.