在本地服务器中我不会面临这个问题,但在具有https的生产服务器中它不起作用
Firefox ne peut établir de connexion avec le serveur à l’adresse
wss://kergafa.com:8081/.
我已尝试多次,但无法找到/了解问题所在?
我的conf.yml
gos_web_socket:
server:
port: 8081 #The port the socket server will listen on
host: kergafa.com #The host ip to bind to
router:
resources:
- '@SkiesAdherentBundle/Resources/config/pubsub/routing.yml
client:
firewall: main
session_handler: '@session.handler.pdo'
pushers:
wamp:
host: kergafa.com
port: 8081
当我启动服务器时:
[2017-01-06 04:33:12] websocket.INFO: Starting web socket
[2017-01-06 04:33:12] websocket.INFO: Register periodic callback Gos\Bundle\WebSocketBundle\Periodic\PdoPeriodicPing, executed each 20 seconds
[2017-01-06 04:33:12] websocket.INFO: Launching Ratchet on kergafa.com:8081 PID: 7698
所以它的作品
ctunnel conf
[websockets]
accept = 8080
connect = kergafa.com:8081
它说:
[Started: /etc/stunnel/stunnel.conf] stunnel.
grep 8080结果
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 7694/stunnel4
答案 0 :(得分:0)
我编辑了你的帖子。在config.yml中你有这个:
router:
resources:
- '@SkiesAdherentBundle/Resources/config/pubsub/routing.yml
但那看起来不错。我认为这是一个简单的改变:
router:
resources:
- @SkiesAdherentBundle/Resources/config/pubsub/routing.yml
也许这就是问题?