Getting disconnected as soon as I connect to PubSub C#

It should be enough, but i suspect you’re going to have problems with the send on socket open, try a sleep for 2s and see if it works (and if you’re actually calling send, and messageSubscribe is the listen request)