The community forums are in BETA and closed to the public.

HTTP Streaming over TCP with Telnet Example

HTTP Streaming over TCP with Telnet Example

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.

Stream JSON Messages with Telnet Example

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.

HTTP/TCP Streaming of JSON Payloads Use Cases and Examples

  • Server Side Streaming
  • Efficient Stream of Stock Symbols
  • IoT Internet of Things
  • Efficient Voice and Video Streams

Comments to this discussion are now closed!