faye/faye-websocket-node — pull request #18 by gsoltis (2012-10-15 18:37:12+00:00)
Title: Fix for closing a socket in the CONNECTING state

this.readyState was squashed before being checked. I reorganized the logic a little in the close method in api.js to fix it.