[英]WebSocket connection to 'ws://./' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED
I dont have any knowledge in websockets, i am using a admin template from here 我对websockets没有任何了解,我在这里使用管理员模板
https://github.com/onokumus/Bootstrap-Admin-Template
i don't know did i do something wrong or how it is giving this problem but i am getting this error in the google chrome Console. 我不知道我做错了什么或它是如何给出这个问题,但我在谷歌Chrome控制台中收到此错误。
WebSocket connection to 'ws://./' failed: Error in connection establishment: net::ERR_NAME_NOT_RESOLVED
it is reffering this file modernizr-build.min.js:2
for error. 它正在修复此文件
modernizr-build.min.js:2
以获取错误。
Note: Error is only Showing in Google Chrome, but in Firebug this error is not showing up? 注意:错误仅在Google Chrome中显示,但在Firebug中此错误未显示?
Anyone Knows why i am getting this error and how to get rid of this error without compromising anything else in theme? 任何人都知道我为什么会收到此错误以及如何摆脱这个错误而不影响主题中的任何其他内容?
It is because you have to use the FQDN for the WS URL. 这是因为您必须将FQDN用于WS URL。 There is a good small sample code here: How to construct a WebSocket URI relative to the page URI?
这里有一个很好的小示例代码: 如何构建相对于页面URI的WebSocket URI?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.