From 10e5413cac3b2a936f1b99aa3ed08fc3b45df410 Mon Sep 17 00:00:00 2001 From: GuilhermeWerner Date: Sat, 19 Sep 2020 15:52:34 -0300 Subject: [PATCH] Update socket.js --- Public/socket.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Public/socket.js b/Public/socket.js index 00a0e3e..60051b4 100644 --- a/Public/socket.js +++ b/Public/socket.js @@ -1,4 +1,7 @@ -var socket = io('http://192.168.0.25:3333'); +/** + * Change with your ip address + the server port + */ +const socket = io('http://192.168.0.25:3333'); function renderMessage(message) { $('#messages').append(`
  • ${message.author}: ${message.content}
  • `);