socket.io.connect

This commit is contained in:
Victor Moinard 2020-05-23 12:24:11 +02:00
parent 67c33e761e
commit 585a470f91

View file

@ -250,7 +250,7 @@ $(function() {
} }
///////////////////////////// connexion à socket.io //////////////////////////////// ///////////////////////////// connexion à socket.io ////////////////////////////////
var socket = io.connect('http://localhost:8080'); var socket = io.connect(window.location.host);
socket.emit('newplatoo',nomPlatoo); socket.emit('newplatoo',nomPlatoo);