Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does PubNub use WebSockets and/or XMPP under the hood?

Couldn't find a clear answer to either:

WebSockets: There is support for WebSockets (http://www.pubnub.com/websockets/) and socket.io, however do the other SDKs use web sockets?

XMPP: Does PubNub use it as a communication protocol?

like image 260
EugeneMi Avatar asked Oct 10 '14 16:10

EugeneMi


People also ask

Is PubNub a WebSocket?

PubNub has used a variety of protocols over time, like WebSockets, MQTT, COMET, BOSH, SPDY, long polling and others, and we are exploring architectures using HTTP 2.0, and others.

What protocol does PubNub use?

PubNub supports TLS 1.1 and TLS 1.2 protocols. You should use one of these two versions depending on the SSL libraries of your client app. If your client app has modern OpenSSL libraries, then TLS 1.2 should be utilized.

How WebSockets work under the hood?

WebSocket is a computer communications protocol, providing full-duplex communication channels over a single TCP connection. The WebSocket protocol was standardized by the IETF as RFC 6455 in 2011, and the WebSocket API in Web IDL is being standardized by the W3C.


1 Answers

PubNub WebSockets and/or XMPP

Update 2019 🌟 PubNub is planning to add additional protocols. MQTT is supported today mqtt.pubnub.com, additionally we will be adding WebSockets and SEE and connectionless push with UDP.

At PubNub we use many protocols in our Client SDKs starting with an always-on forever lived TCP Socket. Our TTL policy on TCP Sockets is unlimited. We provide the best protocol and we roll in updates under the covers so developers don't have to sweat the details of how messages are delivered.

The PubNub Data Stream Network believes in a protocol independent open mobile web; meaning that we will use the best protocol to get connectivity through any environment. Protocols, like WebSockets, can get tripped up by cell tower switching, double NAT environments, and even some anti-virus software or proxy boarder authorities.

PubNub provides client libraries specifically so we can auto-switch the protocol and remove socket-level complexities making it easy for developers to build apps that can communicate in realtime.

PubNub has deployed a variety of protocols over time, like WebSockets, MQTT, COMET, BOSH, long polling and others. We are exploring currently prototyping future designs using SPDY, HTTP 2.0, and others. The bottom line is that PubNub will work in every network environment, and has very low network bandwidth overhead, as well as low battery drain on mobile devices compared to connection based push implementations.

like image 82
Stephen Blum Avatar answered Sep 30 '22 19:09

Stephen Blum