diff --git a/src/main/resources/static/IrcClient.js b/src/main/resources/static/IrcClient.js index c207746..1df7955 100644 --- a/src/main/resources/static/IrcClient.js +++ b/src/main/resources/static/IrcClient.js @@ -44,6 +44,10 @@ function IrcClient(sockJs, nick, userName, realName) { this.sockJs.onmessage = function (e) { console.log("Received message: " + e.data); + var server = document.getElementById("server"); + var logRow = document.createElement("div"); + logRow.innerHTML = e.data; + server.appendChild(logRow); if (e.data.startsWith("PING ")) { ircClientRef.handlePongMessage(e.data, e.data.substr(7)); } diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html index aabe0a6..1741570 100644 --- a/src/main/resources/static/index.html +++ b/src/main/resources/static/index.html @@ -13,6 +13,15 @@ + +
+
+ Contents +
+
+ \ No newline at end of file