Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
usp-js
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WebSDK
usp-js
Commits
840a120a
Commit
840a120a
authored
2 years ago
by
Marin Karamihalev
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/clean-up-console-logs'
parents
3fd75a25
64104c3d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!5
Rebase with master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/configurations/quickjs/async-mqtt.js
+2
-6
2 additions, 6 deletions
src/configurations/quickjs/async-mqtt.js
with
2 additions
and
6 deletions
src/configurations/quickjs/async-mqtt.js
+
2
−
6
View file @
840a120a
...
...
@@ -18,13 +18,10 @@ class AsyncClient {
protobuf
.
Root
.
prototype
.
fetch
=
function
(
filename
,
callback
)
{
os
.
setTimeout
(
function
()
{
const
data
=
std
.
loadFile
(
filename
);
if
(
data
===
null
)
{
console
.
log
(
"
failed to load file:
"
+
filename
);
if
(
data
===
null
)
callback
(
new
Error
(
"
failed to load file:
"
+
filename
));
}
else
{
//console.log(`data loaded for ${filename}`)
else
callback
(
null
,
data
);
}
},
0
);
};
}
...
...
@@ -82,7 +79,6 @@ class AsyncClient {
// there is no erro handling in paho mqtt
this
.
client
.
onConnectionLost
=
function
(
responseObject
)
{
callback
(
responseObject
);
console
.
log
(
"
USP Disconnected:
"
,
responseObject
.
errorMessage
);
};
}
}
...
...
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