socket: Add a little more logging for debugging

(imported from commit fa227971afc47f74b4784d1466cf58fff3b68113)
This commit is contained in:
Zev Benjamin 2013-10-25 20:58:49 -04:00
parent e1557bef73
commit 7abbf096de
1 changed files with 2 additions and 1 deletions

View File

@ -67,6 +67,7 @@ Socket.prototype = {
_setup_sockjs_callbacks: function Socket__setup_sockjs_callbacks(sockjs) {
var that = this;
sockjs.onopen = function Socket__sockjs_onopen() {
blueslip.info("Socket connected.");
that._is_open = true;
// We can only authenticate after the DOM has loaded because we need
@ -125,7 +126,7 @@ Socket.prototype = {
}
setTimeout(function () {
blueslip.info("Attempting reconnect.");
blueslip.info("Attempting socket reconnect.");
that._sockjs = new SockJS(that.url, null, {protocols_whitelist: that._supported_protocols});
that._setup_sockjs_callbacks(that._sockjs);
}, wait_time);