safesocket: fail early on js/wasm
Updates
package safesocket
import (
+ "errors"
"fmt"
"io"
"io/ioutil"
// TODO(apenwarr): handle magic cookie auth
func connect(path string, port uint16) (net.Conn, error) {
+ if runtime.GOOS == "js" {
+ return nil, errors.New("safesocket.Connect not yet implemented on js/wasm")
+ }
if runtime.GOOS == "darwin" && path == "" && port == 0 {
return connectMacOSAppSandbox()
}
