switch from req.session.jwt to cookies

This commit is contained in:
2025-02-03 04:02:52 +03:00
parent c0ee036530
commit 3a742b1f34
12 changed files with 247 additions and 26 deletions

16
public/js/chat.js Normal file
View File

@@ -0,0 +1,16 @@
$(document).ready(() => {
const sendData = async () => {
alert(1);
}
$("#send-message-button").click(sendData);
$('#chat-input').keyup(function(e){
if(e.keyCode == 13)
{
$(this).trigger("enterKey");
}
});
$("#chat-input").bind("enterKey", sendData);
});