Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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
});