factor-io / websockethook

A simple web service to receive web hooks over a web socket.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Why does the socket close?

kaihendry opened this issue · comments

Shouldn't it stay open?

Running Chrome 43.0.2342.2

I'm assuming it's due to timeout, but I'll investigate.

I have the same question. Is a "keep-alive" needed?

This StackOverflow thread
http://stackoverflow.com/questions/9056159/websocket-closing-connection-automatically
seems to imply that there can be timeouts on both the browser and server side.

One of the answers suggesting catching the close event on the client and then automatically re-opening it.

Thoughts?
Thanks,
Larry

I'll have to dig into it more. I suspect it is on the client-side as I have other clients I've been testing (in Ruby) that didn't have any issues keeping alive out-of-the-box.