mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-08-06 06:21:41 +08:00
修正websocket连接地址
This commit is contained in:
parent
6495cbfbe0
commit
1fe8c289a5
@ -54,7 +54,7 @@ class PublicController extends Controller
|
|||||||
*/
|
*/
|
||||||
if ($this->request->isSecure()) {
|
if ($this->request->isSecure()) {
|
||||||
list($domain) = explode(':', $websocket->connect_address);
|
list($domain) = explode(':', $websocket->connect_address);
|
||||||
$websocket['connect_url'] = sprintf('wss://%s/wss', $domain);
|
$content['connect_url'] = sprintf('wss://%s/wss', $domain);
|
||||||
} else {
|
} else {
|
||||||
$content['connect_url'] = sprintf('ws://%s', $websocket->connect_address);
|
$content['connect_url'] = sprintf('ws://%s', $websocket->connect_address);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user