blob: a2e838e5d2954ac5bf15c923a2f48f53f825e3ae [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.
// +build nacl
package websocket
import (
"fmt"
"net"
)
// Websocket listeners are not supported in NaCl.
// This file is needed for compilation only.
func listener(protocol, address string, hybrid bool) (net.Listener, error) {
return nil, fmt.Errorf("Websocket Listener called in nacl code!")
}
func Listener(protocol, address string) (net.Listener, error) {
return nil, fmt.Errorf("Websocket Listener called in nacl code!")
}