I am seeing this error sometimes https://stackoverflow.com/a/17637900/135829, and added a handler to backend side for error case, which I want to test.
For that I want to drop the connection in Chrome. I have access to connection instance, but running .close()
method doesn't cause the error as it closes the connection gently.
How can I drop it harshly like it's an error?