我的WebSocket实现在Chrome和Firefox中正常工作。 在IE11我得到这个错误: Websocket Error: Network Error 12152, The server returned an invalid or unrecognized response 我用js的WebSocket类和reactPhp和https://github.com/ratchetphp/RF
我在Symfony中使用Gos Web Socket Bundle,我尝试在demo they give中工作。我很迷惑关于端口,因为它的工作原理,如果端口127.0.0.1:1337但是当我运行的symfony的服务器时,它产生127.0.0.1:8000,所以我尝试添加在这里” gos_web_socket:
server:
port: 8000 #The port t
所以我试图在Linux实例上设置php的网络套接字,并有两个文件。这两个文件都在我的/ var/www/html目录中。第一个被称为Chat.php,包含以下代码: <?php
namespace MyApp;
use Ratchet\MessageComponentInterface;
use Ratchet\ConnectionInterface;
class Chat implem