Changed sync handling. Subscriptions are kept track of and are re-initiated when web socket re-opens