'How to replay some code/action after an observable retry (retry, retryWhen) succeeded?

My case, I have a retry stuff on WebSocket Observable that works with use of retryWhen and delayWhen. And I have to replay init message to the server when the connection is up again.

I can't find a way to do that. Any suggestions ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source