code format and small corrects
code format and small corrects
code format and small corrects
correct bugs, code format, send ping only when required (fix #19), request timeout on client side (will try to reconnect at 2/3 negociatedTimeout if no response from server)