...
 
Commits (2)
......@@ -45,6 +45,7 @@ function createDetectStream() {
detectStream = sessionClient
.streamingDetectIntent()
.on('error', (err) => {
console.log('Stream restarted');
detectStream.end();
detectStream = null;
createDetectStream();
......