How to set clientside timeout if server is not ready yet

Feb 18, 2015 at 12:55 PM
Edited Feb 18, 2015 at 1:02 PM
I use WebSocket4Net 0.11 along with Fleck server, and I wonder how to set a constant timeout, that forces WebSocket4Net client into error (lets say every sec) if the server does not respond?
I would need this to trigger a reconnection try and remain responsive whenever the server comes up.
Currently it looks like, the timeout is getting longer and longer which is a pain in the neck.

Thank's for helping,