var notification = { init: function () { $(".notification-count").click(function () { bottomGroup.tabs.setCurrent("notification"); $(".bottom-window-group .notification").focus(); $(this).hide(); }); this._initWS(); }, _initWS: function () { var notificationWS = new ReconnectingWebSocket(config.channel.shell + '/notification/ws?sid=' + config.wideSessionId); notificationWS.onopen = function () { console.log('[notification onopen] connected'); }; notificationWS.onmessage = function (e) { var data = JSON.parse(e.data), $notification = $('.bottom-window-group .notification > table'), notificationHTML = ''; notificationHTML += '