Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
ulakbus-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ulakbus
ulakbus-ui
Commits
cefecbf2
Commit
cefecbf2
authored
Aug 08, 2016
by
Vladimir Baranov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary debug from socket.js
parent
d0f42598
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
socket.js
app/zetalib/socket.js
+6
-3
No files found.
app/zetalib/socket.js
View file @
cefecbf2
...
@@ -116,7 +116,9 @@ angular.module('ulakbus')
...
@@ -116,7 +116,9 @@ angular.module('ulakbus')
delete
wsOps
.
callbacks
[
data
.
callbackID
];
delete
wsOps
.
callbacks
[
data
.
callbackID
];
callback
.
resolve
(
data
);
callback
.
resolve
(
data
);
}
else
{
}
else
{
if
(
data
.
msg
!=
'pong'
)
{
$log
.
info
(
"Data without callback: %o"
,
data
);
$log
.
info
(
"Data without callback: %o"
,
data
);
};
// if pong in msg reduce pingCounter
// if pong in msg reduce pingCounter
if
(
msg_data
.
msg
===
'pong'
)
{
if
(
msg_data
.
msg
===
'pong'
)
{
pingCounter
-=
1
;
pingCounter
-=
1
;
...
@@ -191,8 +193,9 @@ angular.module('ulakbus')
...
@@ -191,8 +193,9 @@ angular.module('ulakbus')
msg_data
.
cmd
=
'error'
;
msg_data
.
cmd
=
'error'
;
}
}
do_action
(
msg_data
,
msg_data
.
cmd
);
do_action
(
msg_data
,
msg_data
.
cmd
);
if
(
msg_data
.
msg
!=
"pong"
){
$log
.
info
(
"MESSAGE:"
,
msg_data
.
cmd
,
event
,
"Data:"
,
JSON
.
parse
(
event
.
data
));
$log
.
info
(
"MESSAGE:"
,
event
,
"Data:"
,
msg_data
);
}
};
};
wsOps
.
onError
=
function
(
evt
)
{
wsOps
.
onError
=
function
(
evt
)
{
$log
.
error
(
"ERROR :: "
+
evt
);
$log
.
error
(
"ERROR :: "
+
evt
);
...
...
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