SockJs - 'info' path not found

北城以北 提交于 2019-12-19 10:25:07

问题


I'm running an example of SockJS.

Ran npm install (everything okay)

Start server with no problem.

When I first load the test page, I see that there was a failed 404 call tohttp://127.0.0.1/echo/info

I'm looking at sockjs code and I'm guessing it is called from here - https://github.com/sockjs/sockjs-node/blob/master/src/sockjs.coffee#L81

What is the purpose of this info call and why is it not found? What am I missing in my configuration?


回答1:


Your server is listening on 9999 port! So you have to put the port too.

This will work http://127.0.0.1:9999/echo/info



来源:https://stackoverflow.com/questions/15788628/sockjs-info-path-not-found

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!