Update ApiWebSocket to support reconnect and session updates, changed signature for Connect()