Javascript 使用php在会议视频呼叫中获取websocket错误https://github.com/amirsanni/conference-call-ratchet

Javascript 使用php在会议视频呼叫中获取websocket错误https://github.com/amirsanni/conference-call-ratchet,javascript,php,websocket,handshake,video-conferencing,Javascript,Php,Websocket,Handshake,Video Conferencing,我已经从GIT安装了一个代码 但在控制台中获取错误 WebSocket连接到'wss://server.xyz.co.uk/videocall/comm'失败:WebSocket握手期间出错:意外响应代码:404 我已经配置了api, 下面是一些带有路径的代码(我不知道哪里出错了) /server.php `require 'vendor/autoload.php'; use Amir\Comm; use Ratchet\App; //set an array of origins allo

我已经从GIT安装了一个代码 但在控制台中获取错误

WebSocket连接到'wss://server.xyz.co.uk/videocall/comm'失败:WebSocket握手期间出错:意外响应代码:404

我已经配置了api, 下面是一些带有路径的代码(我不知道哪里出错了)

/server.php

`require 'vendor/autoload.php';

use Amir\Comm;
use Ratchet\App;

//set an array of origins allowed to connect to this server
$allowed_origins = [''];

// Run the server application through the WebSocket protocol on port 8080
$app = new App('https://server.xyz.co.uk/videocall/', 80, '0.0.0.0');//App(hostname, port, 'whoCanConnectIP', '')

//create socket routes
//route(uri, classInstance, arrOfAllowedOrigins)
$app->route('comm', new Comm, $allowed_origins);

//run websocket
$app->run();`
/videocall/assets/js/chat.js

 import h from './helpers.js';
    
    const wsUrl = 'wss://server.sdssoftltd.co.uk/videocall';
    var servers = {
        iceServers: []
    }