You can have a look at the socket ping/pong values: Configuration - Heroic Labs Documentation.
Mind that changing these configs has tradeoffs (see: How to handle MatchLeave Trigger Time - #4 by sesposito) and other considerations.
Ideally the client should also attempt to gracefully handle reconnects if possible.