I think I got the answer for some of the issue I'm facing.
- For methods in push widget, push.js is the file to look for.
The appending issue is because of calling
requestContext.execute("subscriber.connect('/" + username + "')");
multiple time. The below code gets called which results in appending of the channel names multiple times.
connect: function (a) {if (a) { this.cfg.request.url += a // <---- } this.connection = $.atmosphere.subscribe(this.cfg.request)
Disconnect method is available in PF 4.0. or you can add the following code to push.js.
disconnect: function () { this.connection.close() }