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

nginx & WebSocket via /wss - have reconnect #1083

Closed
zatomant opened this issue Jan 7, 2025 · 1 comment
Closed

nginx & WebSocket via /wss - have reconnect #1083

zatomant opened this issue Jan 7, 2025 · 1 comment

Comments

@zatomant
Copy link

zatomant commented Jan 7, 2025

default nginx settings.

if i use wss://domain.com:port - have not any drop
but "Enable SSL Directly with Workerman (Not Recommended)"

now,i for the frontend uses the example https://manual.workerman.net/doc/en/faq/secure-websocket-server.html

and I have quite frequent reconnects to the javascript websocket frontend via wss://domain.com/wss

change nginx settings, like this:
proxy_read_timeout 3600;
proxy_send_timeout 3600;'

or

on the frontend, make changes to the onClose handling and reconnect 'silent'.

or

from frontend send ping-pong

what is the best way to use?

@walkor
Copy link
Owner

walkor commented Jan 8, 2025

Client disconnection reconnection and sending heartbeats are both necessary.

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