Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
965d6605
Commit
965d6605
authored
Mar 11, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
export Client as class
parent
927ca682
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
debomatic-webui/index.js
debomatic-webui/index.js
+2
-2
debomatic-webui/lib/client.js
debomatic-webui/lib/client.js
+1
-1
No files found.
debomatic-webui/index.js
View file @
965d6605
...
...
@@ -9,8 +9,8 @@ var express = require('express')
,
path
=
require
(
'
path
'
)
,
Tail
=
require
(
'
tail
'
).
Tail
,
config
=
require
(
'
./lib/config.js
'
)
,
client
=
require
(
'
./lib/client.js
'
)
,
utils
=
require
(
'
./lib/utils.js
'
)
,
Client
=
require
(
'
./lib/client.js
'
)
var
app
=
module
.
exports
=
express
.
createServer
();
var
io
=
require
(
'
socket.io
'
).
listen
(
app
);
...
...
@@ -46,7 +46,7 @@ app.get(config.routes.distribution, routes.distribution)
io
.
sockets
.
on
(
'
connection
'
,
function
(
socket
)
{
utils
.
send_distributions
(
socket
)
socket
.
emit
(
'
status
'
,
status
)
client
(
socket
)
client
=
new
Client
(
socket
)
});
io
.
sockets
.
on
(
'
disconnect
'
,
function
(
socket
){
...
...
debomatic-webui/lib/client.js
View file @
965d6605
...
...
@@ -84,7 +84,7 @@ function __handler_get_file (socket, data) {
__send_file
(
events
.
file
.
set
,
socket
,
data
)
}
Client
=
function
(
socket
)
{
function
Client
(
socket
)
{
events
=
config
.
events
.
client
...
...
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