We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11d71e6 commit 5882dafCopy full SHA for 5882daf
client/internal/peer/conn.go
@@ -666,7 +666,7 @@ func (conn *Conn) isConnectedOnAllWay() (connected bool) {
666
}
667
}()
668
669
- if conn.statusICE.Get() == worker.StatusDisconnected && !conn.workerICE.InProgress() {
+ if runtime.GOOS != "js" && conn.statusICE.Get() == worker.StatusDisconnected && !conn.workerICE.InProgress() {
670
return false
671
672
client/internal/peer/env.go
@@ -2,6 +2,7 @@ package peer
2
3
import (
4
"os"
5
+ "runtime"
6
"strings"
7
)
8
@@ -10,5 +11,8 @@ const (
10
11
12
13
func isForceRelayed() bool {
14
+ if runtime.GOOS == "js" {
15
+ return true
16
+ }
17
return strings.EqualFold(os.Getenv(EnvKeyNBForceRelay), "true")
18
0 commit comments