Skip to content

Commit

Permalink
fix: change huobi websocket ping/poing time period
Browse files Browse the repository at this point in the history
The official document says 5 seconds heartbeat, but it actually operates
 for 10 seconds.
  • Loading branch information
namjug-kim committed Jul 11, 2019
1 parent 8ee66b3 commit f601018
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import com.njkim.reactivecrypto.core.common.model.order.TickData
import com.njkim.reactivecrypto.core.common.util.toEpochMilli
import com.njkim.reactivecrypto.core.netty.HeartBeatHandler
import com.njkim.reactivecrypto.core.websocket.AbstractExchangeWebsocketClient
import com.njkim.reactivecrypto.huobiglobal.model.HuobiTickDataWrapper
import com.njkim.reactivecrypto.huobiglobal.model.HuobiOrderBook
import com.njkim.reactivecrypto.huobiglobal.model.HuobiSubscribeResponse
import com.njkim.reactivecrypto.huobiglobal.model.HuobiTickDataWrapper
import io.netty.buffer.ByteBuf
import io.netty.buffer.ByteBufInputStream
import io.netty.channel.ChannelHandlerContext
Expand Down Expand Up @@ -74,7 +74,7 @@ open class HuobiGlobalWebsocketClient(
"heartBeat",
HeartBeatHandler(
false,
2000,
10500,
TimeUnit.MILLISECONDS,
1000
) { "{\"ping\": ${ZonedDateTime.now().toEpochMilli()}}" }
Expand Down Expand Up @@ -119,7 +119,7 @@ open class HuobiGlobalWebsocketClient(
"heartBeat",
HeartBeatHandler(
false,
2000,
10500,
TimeUnit.MILLISECONDS,
1000
) { "{\"ping\": ${ZonedDateTime.now().toEpochMilli()}}" }
Expand Down

0 comments on commit f601018

Please sign in to comment.