Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dehrmann
11 months ago
|
parent
|
context
|
favorite
| on:
Ask HN: What was your most humbling learning momen...
People often forget that you have to poll to handle lost network connections, IP changes, etc., so there isn't always a real-world win to web sockets.
mdavid626
11 months ago
[–]
How about reconnecting the websocket from the client?
dehrmann
11 months ago
|
parent
[–]
Sounds like polling. On an inactive connection, whatever it is, you have to always be polling to see if the connection is still alive.
mdavid626
11 months ago
|
root
|
parent
[–]
What do you mean? The client knows when the websocket connection goes down and just reconnects. How is this polling?
malkosta
11 months ago
|
root
|
parent
[–]
Because it always needs some sort of keep alive, which is many times hidden inside the client/web framework
mdavid626
11 months ago
|
root
|
parent
[–]
But isn't a keep alive bit better than a "full" polling?
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: