Commit 3e1184bd authored by Mat's avatar Mat

voilà pq l'envoi de message (chat) d'un user à l'autre ne marchait pas

parent 1fad7504
......@@ -25,8 +25,11 @@
connection.onopen = function(e)
{
let message = $('#message').val();
connection.send(message);
$("#send").click(function()
{
let message = $('#message').val();
connection.send(message);
});
};
connection.onmessage = function(e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment