blob: 5aac5750c1e8b191843085833ddce453427b8c5f [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/runtime/internal/lib/websocket"
)
func init() {
// ws, ws4, ws6 represent websocket protocol instances.
rpc.RegisterProtocol("ws", websocket.Dial, websocket.Resolve, websocket.Listener, "ws4", "ws6")
rpc.RegisterProtocol("ws4", websocket.Dial, websocket.Resolve, websocket.Listener)
rpc.RegisterProtocol("ws6", websocket.Dial, websocket.Resolve, websocket.Listener)
}