Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tv_panel
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hermod
tv_panel
Commits
5502d140
Commit
5502d140
authored
Feb 27, 2018
by
Julien Raspaud
Browse files
Options
Downloads
Patches
Plain Diff
Configurable host for socket
parent
915f0c63
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
front/config.js
+1
-0
1 addition, 0 deletions
front/config.js
front/socket.js
+1
-1
1 addition, 1 deletion
front/socket.js
with
2 additions
and
1 deletion
front/config.js
+
1
−
0
View file @
5502d140
module
.
exports
=
{
port
:
5000
,
host
:
'
localhost
'
,
};
This diff is collapsed.
Click to expand it.
front/socket.js
+
1
−
1
View file @
5502d140
...
...
@@ -2,7 +2,7 @@ import jsonToHtmlArray from './display';
import
diffNodes
from
'
./diffNodes
'
;
import
{
port
}
from
'
./config
'
;
const
socketIO
=
io
.
connect
(
`http://localhost:
${
port
||
3000
}
/`
);
const
socketIO
=
io
.
connect
(
`http://
${
host
||
'
localhost
'
}
:
${
port
||
3000
}
/`
);
socketIO
.
on
(
'
connect
'
,
()
=>
{
socketIO
.
emit
(
'
date
'
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment