Fixes #63: Updated PubSocket connect to accept a durable parameter

I've made a small change to allow for durable connections in the PubSocket.

Let me know your thoughts and if you think anything should change or if we need to do something similar elsewhere.