change socket.io Methode writeRawFile