Q:

Websocket client disconnect websocket4net

I've been having random websocket disconnects.
My stack is:

Monodroid
Websocket4net
Spring websockets

I'm not sure if anyone else has experienced this.
Usually the client will work perfectly and then randomly, it'll experience a disconnect. Any help or insights would be appreciated.

A:

Why don't you send Ping frames (or unsolicited Pong frames) periodically from the client to the server in order to keep the WebSocket connection? By default, many server implementations disconnect idle connections automatically.

