sockjs/sockjs-node — Issue #51: Expose a socket state on a connection
Author: majek
Created: 2012-03-02 12:43:12+00:00
State: open

@msackman suggests that for various reasons user may be late with installing on('close') handler on a connection.

The user should be able to check if the close is going to be fired in future, or in other words - what is the state of the conneciton. This is quite similar to readyState websocket property