Documentation ¶
Overview ¶
Package wsrpc provides a ReadWriteCloser which operates on a WebSocket connection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReadWriteCloser ¶
type ReadWriteCloser struct {
// contains filtered or unexported fields
}
ReadWriteCloser is a rwc based on WebSockets
func NewReadWriteCloser ¶
func NewReadWriteCloser(ws *websocket.Conn) ReadWriteCloser
NewReadWriteCloser creates a new rwc from a WebSocket connection
func (*ReadWriteCloser) Close ¶
func (rwc *ReadWriteCloser) Close() (err error)
Close the rwc and the underlying WebSocket connection
Click to show internal directories.
Click to hide internal directories.