Documentation ¶
Index ¶
- Variables
- func Dialer(dialer *gorilla.Dialer, requestHeader http.Header) neffos.Dialer
- func Upgrader(upgrader gorilla.Upgrader) neffos.Upgrader
- 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(gorilla.DefaultDialer, make(http.Header))
DefaultDialer is a gorilla/websocket dialer with all fields set to the default values.
View Source
var DefaultUpgrader = Upgrader(gorilla.Upgrader{})
DefaultUpgrader is a gorilla/websocket Upgrader with all fields set to the default values.
Functions ¶
Types ¶
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.