Add callback to Connection.publish
minor: fix indent
Merge pull request #153 from palmerabollo/master

Add callback to Connection.publish