Questions tagged [pubnub]

PubNub offers a publish/subscribe API for realtime data stream messaging for IoT, mobile/web, chat, and games with modern platform supported with an SDK.

www.pubnub.com

PubNub is a secure global Data Stream Network (DSN) and easy to use API that enables our customers to build, scale, and manage real-time functionality for their applications and IoT devices. With over 70 SDKs for every platform, guaranteed 250ms worldwide data transfer times, and scalability for hundreds of millions of devices, PubNub’s unique infrastructure gives you the ability to easily build and operate world-class real-time applications and IoT devices.

PubNub utilizes a Publish/Subscribe model for realtime data streaming and device signaling and supports all of the capabilities of WebSockets, Socket.IO, SignalIR, WebRTC Data Channel and other streaming protocols. With PubNub, developers can dramatically reduce the cost, complexity and time to deliver realtime experiences.

Useful Links

1104 questions
7
votes
1 answer

getting dial tcp: i/o timeout when accessing internet from a service inside a container

I am using PubNub (GO SDK) publish/subscribe service to receive messages but I am not receiving any messages even when I am able to ping google.com from inside the container. In the Pubnub logs, every time my program tries to connect to the origin…
Amit Chahar
  • 2,519
  • 3
  • 18
  • 23
7
votes
1 answer

PubNub: What is the right way to log all published message to my db

What is the right way to log every published message and save it to my server db. There are two options which I can think of: Use PubNub function After Publish event and forward the message to a dedicated logger channel. the server will subscribe…
tomn
  • 125
  • 5
7
votes
2 answers

IoT data system design: Google Pub/Sub vs Kafka vs Kinesis vs PubNub for IoT data ingestion?

I'm trying to build an IoT + data analytics system and I'm having trouble deciding on what technology or service to use for ingestion. A high level description of the end goal is: IoT devices push data to an IoT gateway (using Zigbee, Z-wave,…
gunit
  • 3,700
  • 4
  • 31
  • 42
7
votes
0 answers

PUBNUB read unread messages count

I am developing chat application using PUBNUB. I need to get the count of unread messages from PUBNUB.Is it possible? How can i complete this requirement using PUBNUB. Please suggest
Kichu
  • 1,641
  • 4
  • 21
  • 28
7
votes
1 answer

How to get the number of unread messages PubNub

Hey i'm using pubnub Services to add chat functionality to my Titanium App but i'm wondering if there is a way to get the number of unread messages. there is no info about this on api references What i tried to save the numbers of messages in…
Antwan
  • 3,837
  • 9
  • 41
  • 62
7
votes
1 answer

PubNub unsubscribe slows down the whole web application

I noticed my JS app gets slow sometimes (all UI gets slow). I tried to figure out why and I noticed that PUBNUB unsubscribe event is really heavy. All other PUBNUB events, such as state, subscribe work well. It should be async, I know, but even…
Mïchael Makaröv
  • 1,085
  • 12
  • 21
7
votes
2 answers

How to use WebRTC + Pubnub Api for video chat client in Native android app

i am working on one android application with the functionality of p2p video chat just like Skype. while researching on google, i got some libraries but not getting anything for android native. i decided to go with WebRTC with the use of PubNub api.…
Ajay
  • 1,189
  • 1
  • 12
  • 28
7
votes
2 answers

Why pubnub javascript sdk (?) choses XHR over Websocket?

I'm developing simple browser real-time multiplayer (2 players in a gameplay atm) game. It involves fast and frequent player moves and changes of direction, so informations must be exchanged very quickly - I decided to try websockets (would be happy…
Vincentos
  • 75
  • 5
7
votes
1 answer

Publishing messages from Parse via PubNub

I would like to use PubNub with Parse for a chat module. Could somebody explain me how can i send messages with text and images via PubNub to a user (only one-to-one)? I wanna use the PFUser usernames as the id of a user's private channel. I've…
rihekopo
  • 3,241
  • 4
  • 34
  • 63
6
votes
2 answers

Pubnub perform sync request

I have this asynchronous request: Pubnub pn = new Pubnub(publishKey, subscribeKey, secretKey, cipherKey, enableSSL); pn.HereNow("testchannel", res => //doesn't return a Task { //response }, err => { //error response }); The problem is that I don't…
Andrei
  • 42,814
  • 35
  • 154
  • 218
6
votes
1 answer

Secure Pubnub subscriber key and channel name

I have an application where each user must receive notifications relevant only to themselves. To do this, I have created a unique channel name for each user. I subscribe to this channel when the user logs in from the browser using javascript. pubnub…
6
votes
1 answer

Pubnub connection stops when application goes into background state iOS 8

Title says it all. I've looked at this question and also here on the pubnub forums (same question, just different suggestion). The core of the issue is that as soon as the application suspends, pubnub connectivity is queued and not sent until the…
GrandSteph
  • 2,053
  • 1
  • 16
  • 23
6
votes
1 answer

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?
EugeneMi
  • 3,475
  • 3
  • 38
  • 57
6
votes
2 answers

Pubnub push notifications & battery life on Android

We're writing a chat app and have got the Pubnub service running in the background, listening for messages and firing a Notification Intent on receipt. The problem is that we're using a partial wake lock when the phone is sleeping and that just…
sapanda
  • 792
  • 1
  • 9
  • 17
6
votes
1 answer

Pubnub receiving duplicate messages

I am using PubNub for in-app chat with Backbone and the javascript sdk. If I navigate to another view and return to the chat window, when I publish a message I receive it in duplicate. If I browse away again I receive messages in triplicate and so…
Citylogic
  • 113
  • 2
  • 8
1
2
3
73 74