我目前正在尝试使用实时信息中心,在基于网址的网址上显示在线用户。
使用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)
我想我应该在我的引导程序(路由或某些事情)中做些事情,但不能弄明白......
答案 0 :(得分:0)
找到答案:
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服务器调用127.0.0.1:5000
希望这可以帮助某人:D