Patch for Node 0.11.3

Node 0.11.3 changed the Buffer API.
The weird thing is that I had to wrap socket._flush in a SetTimeout for the message to be fired. Something might not be fully correct here.