allow HTTP-only mode for testing/trial
This commit is contained in:
parent
157719b5f3
commit
faf5c1007f
@ -89,9 +89,13 @@ class DocumentController extends Controller{
|
||||
isset($parts['host']) ? $parts['host'] : "",
|
||||
isset($parts['port']) ? ":" . $parts['port'] : "",
|
||||
"/hosting/discovery" );
|
||||
$webSocketProtocol = "ws://";
|
||||
if ($parts['scheme'] == "https") {
|
||||
$webSocketProtocol = "wss://";
|
||||
}
|
||||
$webSocket = sprintf(
|
||||
"%s%s%s",
|
||||
"wss://",
|
||||
$webSocketProtocol,
|
||||
isset($parts['host']) ? $parts['host'] : "",
|
||||
isset($parts['port']) ? ":" . $parts['port'] : "");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user