我正在尝试为我正在用Node.js构建的socket.io应用程序设置一个服务器结构。
我的设计是:
HAProxy前移到
-> apache2 as default backend (or nginx, is apache in this local test)
-> node.js app if the url has socket.io in the request AND a domain name
我有这样的东西:
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notic
我已经使用Node.js和Express构建了一个socket.io服务器。在浏览器和普通的socket.io客户端上都工作得很好,但是当我尝试在Flutter中使用WebSocket时,我得到了错误
HttpException: Connection closed before full header was received, uri = http://csw.abbadabba.tech:3001
我只是想让它与一个基本的连接像这样工作:
var _url = 'ws://csw.abbadabba.tech:3001';
WebSocket chatsocket = a