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

Connection closed after 60 sec #1

Open
cedricPoncot opened this issue Jul 10, 2021 · 0 comments
Open

Connection closed after 60 sec #1

cedricPoncot opened this issue Jul 10, 2021 · 0 comments

Comments

@cedricPoncot
Copy link
Owner

cedricPoncot commented Jul 10, 2021

Known issue :

If JS client doesn't send any data for 60 sec, connection will be closed (then restarted).

Solution (for now) : Implement a ping from JS client

In the erlang doc : https://ninenines.eu/docs/en/cowboy/2.5/manual/cowboy_websocket/

there is this option :
idle_timeout (60000)
Time in milliseconds that Cowboy will keep the connection open without receiving anything from the client.

but i don't succeed to make it work. :/

Need help :)

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

1 participant