我正尝试使用socket.io第一次。 我使用Laravel 5.4,Laravel Echo和NodeJs server for Laravel Echo broadcasting with Socket.io.。GET https://mydomain.server:6001/socket.io/socket.io.js net :: ERR_CONNECTION_REFUSED
我设法使它在本地工作,因为它应该工作。但在服务器上我得到 错误
GET https://mydomain.server:6001/socket.io/socket.io.js net::ERR_CONNECTION_REFUSED
可能是浏览器无法访问该端口或什么?
另外我试图用 curl -X GET https://mydomain.server:6001/socket.io/socket.io.js
命令访问文件。
但是得到了 curl: (35) gnutls_handshake() failed: The TLS connection was non-properly terminated
。
我也面临着我的服务器上同样的问题。但它与https无关。我的域名有http协议。你能告诉我错误的可能性吗? –