Merge pull request #38 from timar/master

allow HTTP-only mode for testing/trial
pull/1/head
Andras Timar 8 years ago
commit 34f3e0a3f5

@ -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…
Cancel
Save