Send file contents to DOM via sockets