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

Commit da1ac85

Browse files
committed
#56 Display entire WS payload in the Payload tab and field
1 parent ce16ba9 commit da1ac85

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

data/components/details-tab.js

-5
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ var DetailsTab = React.createClass({
2626
render: function() {
2727
var selectedFrame = this.props.selection || {};
2828

29-
// Show parsed mqtt payload
30-
if (selectedFrame.mqtt) {
31-
selectedFrame.data.payload = selectedFrame.mqtt.payload;
32-
}
33-
3429
return (
3530
DIV({className: "details"},
3631
TreeView({key: "detailsTabTree", data: selectedFrame.data})

data/components/payload-tab.js

-5
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ var PayloadTab = React.createClass({
2323
var frame = this.props.selection || {};
2424
var data = frame.data || {};
2525

26-
// Show parsed mqtt payload
27-
if (frame.mqtt) {
28-
data.payload = frame.mqtt.payload;
29-
}
30-
3126
return (
3227
div({className: "payloadTabContent"},
3328
data.payload ? data.payload : ""

lib/wsm-panel.js

+2
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,9 @@ const WsmPanel = Class(
296296
// Assume there's only one MQTT packet in the Websocket frame
297297
result = packet;
298298
});
299+
299300
parser.on('error', function(packet) {
301+
// TODO: should we display an error somewhere?
300302
});
301303

302304
// Fire 'packet' for any completed packets, store any pending bytes

0 commit comments

Comments
 (0)