How to use the pusher.ws_port function in pusher

To help you get started, we’ve selected a few pusher examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Trojan13 / NodeBitSkins / test2.js View on Github external
function initiatePusher() {
    
    var pusher = Pusher.forCluster("notifier.bitskins.com", {
  appId: '',
  key: '',
  secret: 'SECRET_KEY',
  encrypted: true, // optional, defaults to false 
  port: 443, // optional, defaults to 80 for unencrypted and 443 for encrypted 
});
    
    Pusher.host = 'notifier.bitskins.com';
    Pusher.ws_port = 443;
    Pusher.wss_port = 443;
    pusher = new Pusher(apiKey, {
        encrypted: true
        , disabledTransports: ['sockjs']
        , disableStats: true
    });
    
    pusher.trigger('connected', 'test_event', { function () {
        chatChannelSubscribe = pusher.subscribe("chat-channel");
        chatChannelSubscribe.bind('chat_message', function (data) {
            processChatData(data);
        });
}
                                              });
}
function processChatData(data) {

pusher

Node.js client to interact with the Pusher Channels REST API

MIT
Latest version published 1 year ago

Package Health Score

59 / 100
Full package analysis