mirror of
https://github.com/guilhermewerner/chat
synced 2025-06-15 19:04:18 +00:00
Update socket.js
This commit is contained in:
@ -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(`<li class="list-group-item"><strong>${message.author}:</strong> ${message.content}</li>`);
|
||||
|
Reference in New Issue
Block a user