substack/shoe — pull request #23 by nakosung (2013-06-24 06:48:26+00:00)
Title: patch for skipping 'end', 'close' events

stream.destroy() invokes stream.removeAllListeners() within SockJS's closing sequence. To make 'end', 'close' handlers called properly, stream.destroy() should be deferred.