diff --git a/client/js/lounge.js b/client/js/lounge.js index 5acfa82d..58cf0c17 100644 --- a/client/js/lounge.js +++ b/client/js/lounge.js @@ -80,6 +80,10 @@ $(function() { }); }); + socket.on("authorized", function() { + $("#loading-page-message").text("Authorized, loading messages…"); + }); + socket.on("auth", function(data) { var login = $("#sign-in"); @@ -147,6 +151,8 @@ $(function() { }); socket.on("init", function(data) { + $("#loading-page-message").text("Rendering…"); + if (data.networks.length === 0) { $("#footer").find(".connect").trigger("click"); } else { diff --git a/src/server.js b/src/server.js index 4dbbc1af..95ec2e9e 100644 --- a/src/server.js +++ b/src/server.js @@ -140,6 +140,8 @@ function init(socket, client) { socket.emit("auth", {success: true}); socket.on("auth", auth); } else { + socket.emit("authorized"); + socket.on( "input", function(data) {