To subscribe and receive messages, issue a GET request in the following format. This guide we will provide an easy to use Telnet as an example of Streaming your JSON message payloads over TCP socket.
telnet pubsub.pubnub.com 80 GET /stream/demo/bot/0/-1 HTTP/1.1 Host: pubnub
Note the socket will remain open as it receives data and even during silence. You'll need to re-send the GET upon a chunk complete event.