format cleaning
added a transition 'done'->'done'
forgotten comma
use self.error rather than repeating instructions
handle empty data received as closure
use self.(info|error|data) everywhere
add a client.setCloseStatus method
fixed closing handshake errors
remove useless commented lines
fixed client-initiated closing handshake