1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-27 21:10:24 +08:00

Merge branch 'koogua/v1.4.5' into demo

This commit is contained in:
koogua 2021-10-03 14:53:37 +08:00
commit 2b50eb2e5c

View File

@ -54,7 +54,7 @@ class PublicController extends Controller
*/
if ($this->request->isSecure()) {
list($domain) = explode(':', $websocket->connect_address);
$websocket['connect_url'] = sprintf('wss://%s/wss', $domain);
$content['connect_url'] = sprintf('wss://%s/wss', $domain);
} else {
$content['connect_url'] = sprintf('ws://%s', $websocket->connect_address);
}