X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=index.js;h=07da00a59a99919049ac8d9c6319e2a7a0a42c83;hb=c7399ddc7ac3efd6797c3011959f2ac9d3f6e966;hp=b0e7d7ae4126428d383ddd31731f09feda8a570a;hpb=7dd4521eb06dd0292956576a98625a75aad310e1;p=zombocom-ai diff --git a/index.js b/index.js index b0e7d7a..07da00a 100644 --- a/index.js +++ b/index.js @@ -85,6 +85,8 @@ io.on('connection', (socket) => { console.log("Received set-name event: " + name); socket.request.session.name = name; socket.request.session.save(); + // Complete the round trip to the client + socket.emit('inform-name', socket.request.session.name); }); // When any client comments, send that to all clients (including sender)