package ws
import "k8s.io/kubernetes/Godeps/_workspace/src/github.com/docker/spdystream/ws"
Index ¶
Examples ¶
Types ¶
type Conn ¶
Wrap an HTTP2 connection over WebSockets and
use the underlying WebSocket framing for proxy
compatibility.
Connect to the Websocket endpoint at ws://localhost
using SPDY over Websockets framing.
Code:
Example¶
{
wsconn, _, _ := websocket.DefaultDialer.Dial("ws://localhost/", http.Header{"Origin": {"http://localhost/"}})
conn, _ := spdystream.NewConnection(NewConnection(wsconn), false)
go conn.Serve(spdystream.NoOpStreamHandler, spdystream.NoAuthHandler)
stream, _ := conn.CreateStream(http.Header{}, nil, false)
stream.Wait()
}
func NewConnection ¶
func (Conn) Close ¶
func (Conn) Read ¶
func (Conn) SetDeadline ¶
func (Conn) Write ¶
Source Files ¶
connection.go
- Version
- v0.14.2
- Published
- Apr 8, 2015
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 20 seconds ago –
Tools for package owners.