Documentation ¶
Index ¶
- Variables
- func Dialer(dialer gobwas.Dialer) neffos.Dialer
- func Upgrader(upgrader gobwas.HTTPUpgrader) 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) WriteBinary(body []byte, timeout time.Duration) error
- func (s *Socket) WriteText(body []byte, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultDialer = Dialer(gobwas.DefaultDialer)
DefaultDialer is a gobwas/ws dialer with all fields set to the default values.
View Source
var DefaultUpgrader = Upgrader(gobwas.HTTPUpgrader{})
DefaultUpgrader is a gobwas/ws HTTP Upgrader with all fields set to the default values.
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.