| // 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. |
| func (WS) Dial(ctx *context.T, protocol, address string, timeout time.Duration) (flow.Conn, error) { |
| u, err := url.Parse("ws://" + address) |
| ws, err := inst.DialWebsocket(u.String()) |
| return WebsocketConn(address, ws), nil |
| func (WS) Resolve(ctx *context.T, protocol, address string) (string, string, error) { |
| return "ws", address, nil |
| func (WS) Listen(ctx *context.T, protocol, address string) (flow.Listener, error) { |
| return nil, NewErrListenCalledInNaCl(ctx) |