import osfrom random import shufflefrom autobahn.websocket0]
from socket import gethostbyaddrfrom autobahn.websocket''
from socket import gethostbyaddr
from
我构建了一个基于WebSocket的聊天应用程序。作为后端,我使用PHP和nginx作为WebSocket连接的代理。
在PHP库中搜索WS给了我棘轮。此工具支持WAMP协议。我以标准的方式调优了nginx的代理WebSocket连接。对于通常在前端/后端使用WebSocket,一切都可以。但是,如果我开始在后端使用WAMP,并尝试在前端使用autobahn.js作为WAMP,则每次都会捕获426 No Sec-WebSocket-被请求支持的协议作为响应。WAMP只是WebSocket