= "the source of the file and its name"></script><script src="/socket.io/socket.io.js"></script>
但事实上,socket.io.js文件的真正来源是在节点模块中,即使网站运行良好,如果我包括这个文件的真正来源,网站将崩溃。
但是在我的服务器上,我得到了net::ERR_CONNECTION_TIMED_OUT错误。我对socket和redis一无所知。我听从了拉拉文件和回音服务器的指令。但还是同样的错误。http://demoip.com:6001/socket.io/socket.io.js net::ERR_CONNECTION_TIMED_OUTimport Echo from 'laravel-echo';window.Echo = new Echo({