Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用wss协议自动转成https协议 #6

Closed
Andrewuetyang opened this issue Jun 11, 2018 · 1 comment
Closed

使用wss协议自动转成https协议 #6

Andrewuetyang opened this issue Jun 11, 2018 · 1 comment

Comments

@Andrewuetyang
Copy link

在微信小程序中使用wss协议,会被转https协议,是否意味着不能使用wss协议?

@gongzili456
Copy link
Member

socket.io 会首先创建基于HTTP的长轮训连接,然后检查是否满足条件切换至 WS 协议的连接。

你可以查看 websocket 连接有没有创建成功。
如果失败请确认server端服务是否健康, Nginx 配置是否正确。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants