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

Commit

Permalink
#56 Display entire WS payload in the Payload tab and field
Browse files Browse the repository at this point in the history
  • Loading branch information
janodvarko committed Apr 10, 2016
1 parent ce16ba9 commit da1ac85
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
5 changes: 0 additions & 5 deletions data/components/details-tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
5 changes: 0 additions & 5 deletions data/components/payload-tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 : ""
Expand Down
2 changes: 2 additions & 0 deletions lib/wsm-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit da1ac85

Please sign in to comment.