-
I wrote a node.js script which essentially does this:
``` javascript
// some code here
pubnub.subscribe({
channel: 'some channel id',
callback: function () {/* … */},
connect: function (…
herzi updated
10 years ago
-
I'm updating my sample Pubnub socket.io code to make use of PAM and have already done the following things -
1. Turned on the PAM feature in my account
2. Executed code to grant channel level permissi…
-
As suggested at #76 I went to my code to do `var RTCPeerConnection = require('wrtc').RTCPeerConnection;`, just to my surprise that it was already done in my code, so it was not necesary :-) But, execu…
-
The standard callback signature in node is (err[, data...]) which is passed as the last argument to a function call.
Using the Node api, pubnub.publish takes parameters and a cb which looks like the …
-
When i try use 2 instances of Pubnub class (one for my channel, one for channel of different company, so i need 2 subscribe keys) sometimes messages cannot be published. Publish function return "ok" b…
-
Is it wise to instantiate PubNub multiple times throughout an app? (Android) If I call shutdown(), will it shutdown all instances?
-
A your API reference at https://www.pubnub.com/docs/javascript/api/reference.html#subscribe does not describe the arguments being passed to the callbacks, I started to add code like this to my callbac…
herzi updated
10 years ago
-
Running in with StrictMode:
```
StrictMode.setVmPolicy(new VmPolicy.Builder().detectAll().penaltyLog().build());
```
I get the following warnings:
```
A resource was acquired at attached stack trac…
-
Just wondering how can I connect to the push-cluster using web socket or tcp since I can not find any sample code here.
Say, I am looking to implement a chatroom that users can pub/sub messages via w…
ghost updated
10 years ago
-
It is missing many trades completely(usually more consecutive trades, then it can be ok for a while)
And there is a huge variable lag, sometimes it is ok even during fast market, but sometimes it hol…