Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Tabu-Middleware
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dennis Willers
Tabu-Middleware
Commits
23572366
Commit
23572366
authored
Feb 13, 2021
by
Dennis Willers
🏀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement History Feature
parent
edbefb0f
Pipeline
#378
passed with stages
in 3 minutes and 15 seconds
Changes
3
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
127 additions
and
14 deletions
+127
-14
events.js
events.js
+120
-13
index.js
index.js
+2
-1
socket.js
socket.js
+5
-0
No files found.
events.js
View file @
23572366
This diff is collapsed.
Click to expand it.
index.js
View file @
23572366
...
@@ -10,7 +10,8 @@ const connection = mysql.createConnection({
...
@@ -10,7 +10,8 @@ const connection = mysql.createConnection({
port
:
'
3307
'
,
port
:
'
3307
'
,
user
:
'
tabuApp
'
,
user
:
'
tabuApp
'
,
password
:
'
Mannheim123!
'
,
password
:
'
Mannheim123!
'
,
database
:
'
tabu
'
database
:
'
tabu
'
,
multipleStatements
:
true
,
});
});
connection
.
connect
();
connection
.
connect
();
...
...
socket.js
View file @
23572366
...
@@ -49,5 +49,10 @@ Socketio.on("connection", socket => {
...
@@ -49,5 +49,10 @@ Socketio.on("connection", socket => {
Socketio
.
emit
(
data
.
sessionName
+
"
:canPressTabooh
"
,
data
.
canPressTabooh
);
Socketio
.
emit
(
data
.
sessionName
+
"
:canPressTabooh
"
,
data
.
canPressTabooh
);
socket
.
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
);
});
});
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment