Chatbox - prevents from writing to a closed socket
Merge branch 'master' of https://github.com/oscarhe/nodejs