Scarlet icon indicating copy to clipboard operation
Scarlet copied to clipboard

Ping is not following the lifecycle

Open yumiki opened this issue 2 years ago • 0 comments

Hi,

There is an issue related to the usage of pingInterval in OkHttpClient. When the WebSocket is closed and this parameter is set, a new socket is promptly opened to perform the next ping. IMHO the ping mechanism should adhere to the lifecycle specified in the Scarlet builder.

To replicate this issue, you can refer to the code provided in the following link and add a lifecycle to the scarlet builder: https://github.com/Tinder/Scarlet/issues/70#issuecomment-482374937

yumiki avatar Sep 21 '23 10:09 yumiki