Stable web socket communication