Showing: 21 - 28 of 28 Articles

onvert timestamp to pubnub timestamp of 17-digit precision unix time (UTC)

Problem :- We are trying to convert timestamp 2016-02-11 03:31:18 to pubnub timestamp of 17-digit precision unix time (UTC) something like 13406746780720711 given in reference url given by pubnub function parseDateTime(s) { var b = s.split(/\D/); return new Date(b[0],b[1]-1,b[2],b[3],b[4],b[5]) } date = new Date(parseDateTime(“2015-02-11 02:10:54”) …

Openfire: Add user subscription status as “both”

Problem : Issue when i add user using RestApi  include “vendor/autoload.php”; $api = new GidkomOpenFireRestApiOpenFireRestApi; $api->secret = “mySecretKey”; $api->host = “HostName”; $api->port = “9090”; $api->useSSL = false; $api->plugin = “/plugins/restapi/v1″; // plugin For adding user to Roster i am using following code $jid=”xyz@domainname”; //Add to …