allowedErrors constant
A collection of allowed OSError codes.
These errors represent a network failure, and the socket should be reset. The init function will check for these errors and simply restart the socket if necessary.
Implementation
static const allowedErrors = {1234, 10054, 101, 10038, 9};