Refactor publish-subscribe
Add send file example.