xavi-js/xavi — pull request #25 by lipsmack (2014-03-17 17:24:46+00:00)
Title: Delegates suppressing send to closed clients to client module

The client instance should always be responsible for suppressing a request to send over WS transport when closed. Currently, it the client is closed by middleware, a message can still be attempted. With no application error handling, this can crash the whole process.