joewalnes/reconnecting-websocket — pull request #8 by relekang (2013-08-07 06:15:20+00:00)
Title: stop reconnecting after close() is called

If close() is called when the websocket connection is down it should not try to reconnect. There are at least two reasons to avoid this. It should not send a lot of unnecessary requests and if it is able to reconnect the connection will go live again even if the application using reconnecting-websocket tried to close it.