Giter Club home page Giter Club logo

Comments (8)

Stapxs avatar Stapxs commented on August 11, 2024

写完整 wss:// 试试(
自动判断 SSL 写的有点问题一直都没改好

from stapxs-qq-lite-2.0.

Potatoii avatar Potatoii commented on August 11, 2024

wss的判断倒是对的, 页面确实发起了wss的连接, 后端也收到了, 然后就没有下一步了..

from stapxs-qq-lite-2.0.

Stapxs avatar Stapxs commented on August 11, 2024

🤔

from stapxs-qq-lite-2.0.

Stapxs avatar Stapxs commented on August 11, 2024

没复现出来,可以的话可以看一下 nginx 的反代设置吗

from stapxs-qq-lite-2.0.

Potatoii avatar Potatoii commented on August 11, 2024

location /ws {
proxy_pass http://192.168.31.253:3011;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}

from stapxs-qq-lite-2.0.

Stapxs avatar Stapxs commented on August 11, 2024

哦,我之前也遇到过这个问题,反代到子目录下之后连上了 ws 但是完全不交互……
不是 sql 自己的问题
暂时没搞清楚是什么问题,可以先不往子目录代

from stapxs-qq-lite-2.0.

Stapxs avatar Stapxs commented on August 11, 2024

问了下作者解决了(x
参考一下,proxy_pass 加个 rewrite 把 ws 子目录重写掉就好了

location ^~ /ws {
  proxy_http_version 1.1;
  proxy_set_header Upgrade $http_upgrade;
  proxy_set_header Connection "upgrade";
  
  rewrite ^/ws /$1 break;
  proxy_pass http://frps:3010;
}

from stapxs-qq-lite-2.0.

Potatoii avatar Potatoii commented on August 11, 2024

我超, 确实解决了, 牛!

from stapxs-qq-lite-2.0.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.