I set the "maxRetries" option to N. But after reaching maximum retry it keeps retrying. I found the bug in the code. I think this line is the issue - https://github.com/porsager/pws/blob/9a1e11cc7f350ffb0dd51dc621357fec0fb5f2ac/umd/pws.js#L207