Skip to content
This repository has been archived by the owner on Mar 1, 2018. It is now read-only.

Commit

Permalink
Some log
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Herrmann committed Nov 14, 2017
1 parent 68aff0f commit 8f24575
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const responses = require('./responses.json');

app.post('/dialogflow/:uuid', bodyParser.json(), (req, res) => {
const intentName = req.body.result.metadata.intentName;
console.log(new Date() + ': got intent "' + intentName + '"');
broadcast(intentName, req.params.uuid);
let speech = 'Ok';
if (responses[intentName]) {
Expand Down
2 changes: 2 additions & 0 deletions www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@
if (search.uuid) {
exampleSocket.send(search.uuid);
}
console.log(new Date() + ': websocket connected');
function ping() {
console.log(new Date() + ': send ping');
exampleSocket.send('ping');
Expand All @@ -193,6 +194,7 @@
if (event.data === 'pong') {
console.log(new Date() + ': got pong');
} else {
console.log(new Date() + ': got image "' + event.data + '"');
image(event.data);
}
};
Expand Down

0 comments on commit 8f24575

Please sign in to comment.