Bugfix/#123/reconnect after receiving server disconnected (#124)
- Call serverDisconnected only if connection was closed without error
- it should otherwise be handled by the .on('error') event
- Refs #123
- Reset the remainingRetries after a successful connection
Bugfix/#125/ci tests fail node 18 20 (#126)
-
Add nodejs 18.x and 20.x to CI workflow
-
Update tests to use the Connection: close header for the http clients
-
use 127.0.0.1 instead of 'localhost' for chai httprequest client
-
Add the 'close' and 'error' event handlers on the http client protocol connector
before the request is written to the server.