diff --git a/data/components/details-tab.js b/data/components/details-tab.js index 406806e..4f996f3 100644 --- a/data/components/details-tab.js +++ b/data/components/details-tab.js @@ -26,11 +26,6 @@ var DetailsTab = React.createClass({ render: function() { var selectedFrame = this.props.selection || {}; - // Show parsed mqtt payload - if (selectedFrame.mqtt) { - selectedFrame.data.payload = selectedFrame.mqtt.payload; - } - return ( DIV({className: "details"}, TreeView({key: "detailsTabTree", data: selectedFrame.data}) diff --git a/data/components/payload-tab.js b/data/components/payload-tab.js index 6722f07..7863f77 100644 --- a/data/components/payload-tab.js +++ b/data/components/payload-tab.js @@ -23,11 +23,6 @@ var PayloadTab = React.createClass({ var frame = this.props.selection || {}; var data = frame.data || {}; - // Show parsed mqtt payload - if (frame.mqtt) { - data.payload = frame.mqtt.payload; - } - return ( div({className: "payloadTabContent"}, data.payload ? data.payload : "" diff --git a/lib/wsm-panel.js b/lib/wsm-panel.js index 4a01839..8d40ecc 100644 --- a/lib/wsm-panel.js +++ b/lib/wsm-panel.js @@ -296,7 +296,9 @@ const WsmPanel = Class( // Assume there's only one MQTT packet in the Websocket frame result = packet; }); + parser.on('error', function(packet) { + // TODO: should we display an error somewhere? }); // Fire 'packet' for any completed packets, store any pending bytes