There is no need to instantiate a new instance of the PubNub object for each message sent. When you create an instance of PubNub, it has to create a new TCP connection so it is best practice to create a single instance in a way that it does not get garbage collected between uses (publish, subscribe, here-now, history, etc.).