v2.6.0
Added
-
The socket will now automatically heartbeat with the server from within
nakama-js
. If the server doesn't reply after a heartbeat timeout has elapsed,ondisconnect
will be called. This should resolve issues with the socket detecting lack of internet connectivity in Chrome. You can configure the heartbeat tiemout withsetHeartbeatTimeoutMs(ms : number) : void
. -
You can now pass a
connectTimeoutMs
to the socketconnect
call in order to set a connect timeout. -
You can now pass a
sendTimeoutMs
to the socket constructor to detect timeouts for socket calls that expect a response.
The connect, send, and heartbeat timeouts are set to sensible default values.
Fixed
- Fixed dispatching of
onpartyclose
.