Update socket.js

This commit is contained in:
GuilhermeWerner
2020-09-19 15:52:34 -03:00
parent 6fd5572ca9
commit 10e5413cac

View File

@ -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) { function renderMessage(message) {
$('#messages').append(`<li class="list-group-item"><strong>${message.author}:</strong> ${message.content}</li>`); $('#messages').append(`<li class="list-group-item"><strong>${message.author}:</strong> ${message.content}</li>`);