Radar client for the web with bundled engine.io and minilog dependencies served over a CDN and minified using jsDelivr.
Browserify is used to build a browser compatible build from the related npm packages.
Minified.
<script src="https://cdn.jsdelivr.net/gh/mustansirzia/radar-client-web/dist/index.min.js"></script>
Non-Minified.
<script src="https://cdn.jsdelivr.net/gh/mustansirzia/radar-client-web/dist/index.js"></script>
<script>
RadarClient.configure({
host: "xyz.com",
port: 80,
userId: "abc",
userType: 0,
accountName: 'radar_account'
});
RadarClient.alloc('radar_account', function() {
RadarClient
.message('messaging')
.on(function(message) {
alert(message);
})
.sync();
});
<script>
• Radar (http://radar.zendesk.com/index.html).
• jsDelivr (https://www.jsdelivr.com/).
• MIT.