Управление таймаутом пульса от клиента в socket.io
У меня есть мобильные клиенты, подключенные к серверу node.js и работающие с socket.io через xhr-опрос. У меня есть два типа клиентов:
Type A
When the connection breaks up due to network problems (or that the client crashes) the default heart beat timeout is too long
Type B
When the connection breaks up for this client I need to give it more time to recover - it is more important that the client recovers than the server breaks the connection/session
Поэтому мой вопрос заключается в том, как настроить (если это возможно) тайм-ауты пульса от фактического клиента?