JavaScript client SDK to communicate with Centrifugo and Centrifuge-based server from browser, NodeJS and React Native. Supports WebSocket, HTTP-streaming over Fetch and Readable Stream API, EventSource, WebTransport.
i have logic for controlling duplicate subscriptions for not throwing errors in duplicate request .
and i always unsubscribe client from channel before clean up everything .
public async close(): Promise<void> {
this._roomSubscription.unsubscribe();
}
but sometimes it not working
as you can see after close method the subscription exists but my logic throws error
throw new AppError('newSubscription error', { cause: error });
hi . version :
centrifuge-js 5.1.1
in this code :i have logic for controlling duplicate subscriptions for not throwing errors in duplicate request . and i always unsubscribe client from channel before clean up everything .
but sometimes it not working
as you can see after
close
method the subscription exists but my logic throws errordo you have any situation like this ?