binance / binance-connector-java

Simple Java connector to Binance Spot API
MIT License
399 stars 173 forks source link

Tuning OkHttpClient settings #85

Closed jorkey closed 1 year ago

jorkey commented 1 year ago

A new static OkHttpClientBuilder object has been added. It define default OkHttpClient.Builder with enabled ping packets for web socket connections. This should help diagnose broken web socket connections. The programmer can also change the settings of OkHttpClient's by changing the static field OkHttpClientBuilder.builder. This must be done before *ClientSingleton objects are initialized.