【问题标题】:socketio and zend integration (routing)socketio 和 zend 集成(路由)
【发布时间】:2017-05-03 14:49:59
【问题描述】:

我目前正在尝试使用实时仪表板,在基于 url 上显示在线用户。

使用 nodejs/socketIO 和 zend 平台(1)。 当我的页面尝试 socket.emit();

Request URL:http://mysite.local/socket.io/?EIO=3&transport=polling&t=LlEm2ig
Request Method:GET
Status Code:200 OK

但是得到这个错误:

致命错误:

Uncaught exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (socket.io)

我认为我应该在我的引导程序中做一些事情(路由或其他事情)但无法弄清楚......

【问题讨论】:

    标签: php node.js zend-framework socket.io


    【解决方案1】:

    找到答案:

    Request URL:http://mysite.local/socket.io/?EIO=3&transport=polling&t=LlEm2ig
    Request Method:GET
    Status Code:200 OK
    

    mysite.local 调用的是 127.0.0.1,但不是 NodeJs 服务器 On 127.0.0.1:5000

    希望这可以帮助某人:D

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-06
      • 2017-06-14
      • 2015-06-26
      • 1970-01-01
      • 1970-01-01
      • 2011-09-04
      相关资源
      最近更新 更多