diff --git a/js/websockets.js b/js/websockets.js
index 633cd78..91e4ba4 100644
--- a/js/websockets.js
+++ b/js/websockets.js
@@ -330,6 +330,9 @@ weechat.factory('connection', ['$rootScope', '$log', 'handlers', 'colors', funct
}
websocket.onerror = function (evt) {
+ if (evt.type == "error" && websocket.readyState == 0) {
+ $rootScope.errorMessage = true;
+ }
$log.error("Relay error " + evt.data);
}