Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
Adds support for some basic telemetry.
Browse files Browse the repository at this point in the history
  • Loading branch information
TimBarham committed Oct 28, 2015
1 parent 7d27f32 commit 708b2c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sim-host/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ module.exports.initialize = function (pluginHandlers) {

var handler = pluginHandlers[service] && pluginHandlers[service][action];
if (!handler) {
socket.emit('telemetry', {event: 'exec', props: {handled: 'none', service: service, action: action}});
handler = pluginHandlers['*']['*'];
handler(success, failure, service, action, data.args);
} else {
socket.emit('telemetry', {event: 'exec', props: {handled: 'sim-host', service: service, action: action}});
handler(success, failure, data.args);
}
});
Expand Down

0 comments on commit 708b2c9

Please sign in to comment.