blob: dde1c5bdaf3b6e5517ac7e1e3debaa3f6b8be3c9 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package websocket
import (
"v.io/v23/rpc"
"v.io/x/ref/profiles/internal/lib/websocket"
)
func init() {
// ws, ws4, ws6 represent websocket protocol instances.
rpc.RegisterProtocol("ws", websocket.Dial, websocket.Listener, "ws4", "ws6")
rpc.RegisterProtocol("ws4", websocket.Dial, websocket.Listener)
rpc.RegisterProtocol("ws6", websocket.Dial, websocket.Listener)
}