连接是否支持 Web 套接字
作者: Sojourneer创建于 2024年11月27日更新于 2026年9月14日
我有一个使用 connect 的 http 代理服务器,以支持 body-parser。我也想代理 ws://… 的 WebSocket 请求,但 connect.use(fn) 函数无法识别来自 ws:// 的请求。我尝试使用 http.createServer(app, {ws:true})。
内容来源: senchalabs/connect
我有一个使用 connect 的 http 代理服务器,以支持 body-parser。我也想代理 ws://… 的 WebSocket 请求,但 connect.use(fn) 函数无法识别来自 ws:// 的请求。我尝试使用 http.createServer(app, {ws:true})。
内容来源: senchalabs/connect