Skip to content

v2.6.0

Compare
Choose a tag to compare
@lugehorsam lugehorsam released this 06 Mar 15:05
· 33 commits to master since this release
5382b9d

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 with setHeartbeatTimeoutMs(ms : number) : void.

  • You can now pass a connectTimeoutMs to the socket connect 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.