Hi, TorQ provides re-subscribe logic in subscriptions.q provided below.
.sub.subscribe calls a function .sub.autoreconnect which tries to reconnect to any previously subscribed tables/instruments. Initially two variables are checked .sub.AUTORECONNECT which is set to 1b in the script and if .sub.reconnectinit.
TorQ/subscriptions.q at master AquaQAnalytics/TorQ (github.com)