main.js working on client reconnect stuff

web socket timeout client reconnect stuff