Core WebSocket - event subscription

I wrote a short Javascript program, that uses the Unfolded Circle core WebSocket API to trigger activities as well as get notified (using subscribe_events) when an activity is started. This program works well accept that the WebSocket connection is dropped by the server (remote3) after about a minute. Is there any chance to avoid this connection lost?

Is remote in dock?

Yes, it is.