This repository was archived by the owner on Aug 13, 2018. It is now read-only.
File tree 3 files changed +2
-10
lines changed
3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,6 @@ var DetailsTab = React.createClass({
26
26
render : function ( ) {
27
27
var selectedFrame = this . props . selection || { } ;
28
28
29
- // Show parsed mqtt payload
30
- if ( selectedFrame . mqtt ) {
31
- selectedFrame . data . payload = selectedFrame . mqtt . payload ;
32
- }
33
-
34
29
return (
35
30
DIV ( { className : "details" } ,
36
31
TreeView ( { key : "detailsTabTree" , data : selectedFrame . data } )
Original file line number Diff line number Diff line change @@ -23,11 +23,6 @@ var PayloadTab = React.createClass({
23
23
var frame = this . props . selection || { } ;
24
24
var data = frame . data || { } ;
25
25
26
- // Show parsed mqtt payload
27
- if ( frame . mqtt ) {
28
- data . payload = frame . mqtt . payload ;
29
- }
30
-
31
26
return (
32
27
div ( { className : "payloadTabContent" } ,
33
28
data . payload ? data . payload : ""
Original file line number Diff line number Diff line change @@ -296,7 +296,9 @@ const WsmPanel = Class(
296
296
// Assume there's only one MQTT packet in the Websocket frame
297
297
result = packet ;
298
298
} ) ;
299
+
299
300
parser . on ( 'error' , function ( packet ) {
301
+ // TODO: should we display an error somewhere?
300
302
} ) ;
301
303
302
304
// Fire 'packet' for any completed packets, store any pending bytes
You can’t perform that action at this time.
0 commit comments