Documentation ¶
Index ¶
- type Socket
- func (s *Socket) Close() error
- func (s *Socket) ReadData(timeout time.Duration) ([]byte, int, error)
- func (s *Socket) Request() *http.Request
- func (s *Socket) WriteBinary(body []byte, timeout time.Duration) error
- func (s *Socket) WriteClose(timeout time.Duration) error
- func (s *Socket) WritePing(body []byte, timeout time.Duration) error
- func (s *Socket) WritePong(body []byte, timeout time.Duration) error
- func (s *Socket) WriteText(body []byte, timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Socket ¶
type Socket struct {
// contains filtered or unexported fields
}
func (*Socket) WriteBinary ¶
WriteBinary sends a binary message to the remote connection.
Click to show internal directories.
Click to hide internal directories.