Commit 23572366 authored by Dennis Willers's avatar Dennis Willers 🏀

Implement History Feature

parent edbefb0f
Pipeline #378 passed with stages
in 3 minutes and 15 seconds
This diff is collapsed.
......@@ -10,7 +10,8 @@ const connection = mysql.createConnection({
port : '3307',
user : 'tabuApp',
password : 'Mannheim123!',
database : 'tabu'
database : 'tabu',
multipleStatements: true,
});
connection.connect();
......
......@@ -49,5 +49,10 @@ Socketio.on("connection", socket => {
Socketio.emit(data.sessionName+":canPressTabooh", data.canPressTabooh);
socket.emit(data.sessionName+":canPressTabooh", data.canPressTabooh);
});
socket.on("historyChanged", data => {
console.log('historyChanged from: ', data.sessionName);
Socketio.emit(data.sessionName+":historyChanged", data);
socket.emit(data.sessionName+":historyChanged", data);
});
});
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