cancelAllSubscribeData
cancelAllSubscribeData
Releases every active subscription immediately and sends cancel requests to the server.
Parameters: None
Returns: None (void)
Description
Behaves the same as cancelSubscribeData, applied to every registered subscription. It sends each subscription's server cancel message without the lifecycle events (onUnsubscribeDataBefore/After) and clears the local subscription list.
Use it to clean up every subscription at once when a form closes or is disposed.
Example
// 폼 종료 시 모든 실시간 구독 해제
$vm.cancelAllSubscribeData();
Related
$vm.subscribeData(provInstName, callback)— start a real-time subscription$vm.cancelSubscribeData(provInstName)— release a single subscription$vm.unsubscribeData(provInstName)— release a single subscription with lifecycle events