# notificationx/3.2.12/vendor/wpdeveloper/lib-utility/scripts/udx.happ.socket.js

NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner &amp; Floating Notification Bar, version 3.2.12. 1 lines.

- Page: https://pluginprobe.com/plugins/notificationx/3.2.12/code/vendor/wpdeveloper/lib-utility/scripts/udx.happ.socket.js
- Raw: https://pluginprobe.com/plugins/notificationx/3.2.12/raw/vendor/wpdeveloper/lib-utility/scripts/udx.happ.socket.js
- Modified: 2024-05-21T07:46:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/notificationx/3.2.12/code/vendor/wpdeveloper/lib-utility/scripts/udx.happ.socket.js#L10-L20`.

```javascript
Application.define("core.socket",function(a,b){return a=jQuery.extend(!0,{port:443,url:!1,resource:"websocket.api/v1.5",secure:!0,"account-id":!1,"access-key":!1},"object"==typeof a?a:{}),"undefined"==typeof b&&(b=function(){return null}),new ud.socket.connect(a.url,a,function(a,c){if(a)return console.error("Socket Callback","Connection Failed",a),null;try{b(c)}catch(d){console.error("Socket Callback","Custom callback failed",d)}})});
```
