1

has anyone tried Pubnub in Node.js behind a corporate firewall..I can get a simple node.js app w/ pubnub working at home but at work I don't receive any messages. So I assume my firewall is blocking anything except port 80 and 443 internet traffic.

Does that mean when I run node.js with pubnub its using websockets?

Thanks!

var pubnub = require("pubnub").init({
    publish_key   : "demo",
    subscribe_key : "demo",
    uuid: 'my_custom_uuid'
});


pubnub.subscribe({
    channel: "my_channel",
     presence: function(m){console.log(m)},
     callback: function(m){console.log(m)}
});
4

1 回答 1

1

PubNub 适用于企业防火墙和网络

完整详情:https ://github.com/dristic/pubnub-secure-edge/blob/master/README.md#pubnub-secure-edge - 请点击此处查看更多信息。

完整示例代码:https ://github.com/dristic/pubnub-secure-edge

PubNub 实时网络安全边缘接收 HTTP 流量并通过 PubNub 网络路由请求。这允许您的网站位于 100% 封闭的防火墙之后,但仍接受并响应 Web 请求。

于 2013-11-21T18:49:25.803 回答