Documentation ¶
Index ¶
- Constants
- func NewDialer(idleTime time.Duration) neffos.Dialer
- func NewUpgrader(idleTime time.Duration) neffos.Upgrader
- type Header
- type Options
- type Socket
- func (s *Socket) NetConn() net.Conn
- func (s *Socket) ReadData(timeout time.Duration) ([]byte, neffos.MessageType, error)
- func (s *Socket) Request() *http.Request
- func (s *Socket) SendPing()
- func (s *Socket) WriteBinary(body []byte, timeout time.Duration) error
- func (s *Socket) WriteText(body []byte, timeout time.Duration) error
Constants ¶
View Source
const MinPingTime = 3 * time.Second
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Header ¶
type Header = gobwas.HandshakeHeaderHTTP
Header is an alias to the adapter that allows the use of `http.Header` as `gobwas/ws.Dialer.HandshakeHeader`.
type Socket ¶
Socket completes the `neffos.Socket` interface, it describes the underline websocket connection.
func (*Socket) WriteBinary ¶
WriteBinary sends a binary message to the remote connection.
Click to show internal directories.
Click to hide internal directories.