Documentation ¶
Overview ¶
Package connection provides utilities for the connection used when bridging TCP over websocket.
Index ¶
Constants ¶
View Source
const StreamingPath = "/tcp-over-websocket-bridge/35218cb7-1201-4940-89e8-48d8f03fed96"
StreamingPath is the path used for websocket channels that implement the bridge.
The last component of the path is a randomly generated UUID used to reduce the risk of accidental conflicts.
Variables ¶
This section is empty.
Functions ¶
func DialWebsocket ¶
DialWebsocket establishes a connection with the given server using websocket as the underlying transport layer.
Types ¶
type WebsocketNetConn ¶
WebsocketNetConnection wraps the websocket.Conn type and adds extends it to implement the net.Conn interface
func (*WebsocketNetConn) Read ¶
func (c *WebsocketNetConn) Read(bs []byte) (count int, err error)
Read implements the io.Reader interface.
func (*WebsocketNetConn) SetDeadline ¶
func (c *WebsocketNetConn) SetDeadline(t time.Time) error
SetDeadline implements the net.Conn interface.
Click to show internal directories.
Click to hide internal directories.