Skip to content

Commit

Permalink
Revert "Example code for sending chart"
Browse files Browse the repository at this point in the history
This reverts commit 2ef5954.
  • Loading branch information
sileix committed May 6, 2020
1 parent 2ef5954 commit b6f4d3e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions routes/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,6 @@ class WebsocketAssistantDelegate {
sendCommand(command) {
return this._ws.send(JSON.stringify({ type: 'command', text: command }));
}

maybeSendChart(chart, icon) {
return this._ws.send(JSON.stringify({ type: 'text', text: JSON.stringify(chart.data), icon }));
}
}

router.ws('/conversation', (ws, req, next) => {
Expand Down
4 changes: 0 additions & 4 deletions service/assistant.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,6 @@ class MainConversationDelegate {
this._speechSynth.say(rdl.displayTitle);
this._addMessage(MessageType.RDL, (out) => out.sendRDL(rdl, icon));
}

maybeSendChart(chart, icon) {
this._addMessage(MessageType.TEXT, (out) => out.maybeSendChart(chart, icon));
}
}

class MainConversation extends Almond {
Expand Down

0 comments on commit b6f4d3e

Please sign in to comment.