blob: 53f34e07fff10d31241ab63c12c6c7c8e03cf51e [file] [log] [blame]
// Package wsh registers the websocket 'hybrid' protocol.
// We prefer to use tcp whenever we can to avoid the overhead of websockets.
package wsh
import (
"veyron.io/veyron/veyron2/ipc/stream"
"veyron.io/veyron/veyron/lib/websocket"
)
func init() {
for _, p := range []string{"wsh", "wsh4", "wsh6"} {
stream.RegisterProtocol(p, websocket.HybridDial, websocket.HybridListener)
}
}