Changed ordering of blocking write
Adding preliminary WebSockets support for tapping into the pubsub and issueing queries