Keep connection closed after close()
Keep connection closed after close()

If close() is called after handleClose() and before connect() (while the
underlying WebSocket is closed), the WebSocket will be reopened again
after the reconnectDelay timeout expires.

To prevent this, check shouldRetry after the reconnectDelay timeout
expires to determine whether the WebSocket should be reopened.

pladaria/reconnecting-websocket,pladaria/reconnecting-websocket