File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ const App = () => {
56
56
socket . send (
57
57
JSON . stringify ( {
58
58
event : "candidate" ,
59
- data : JSON . stringify ( e . candidate ) ,
59
+ data : e . candidate ,
60
60
} )
61
61
) ;
62
62
}
@@ -71,7 +71,7 @@ const App = () => {
71
71
return ;
72
72
}
73
73
74
- const offerCandidate = JSON . parse ( msg . data ) ;
74
+ const offerCandidate = msg . data ;
75
75
76
76
if ( ! offerCandidate ) {
77
77
console . log ( "Failed to parse offer msg data" ) ;
@@ -89,7 +89,7 @@ const App = () => {
89
89
socket . send (
90
90
JSON . stringify ( {
91
91
event : "answer" ,
92
- data : JSON . stringify ( answer ) ,
92
+ data : answer ,
93
93
} )
94
94
) ;
95
95
} catch ( e ) {
@@ -104,7 +104,7 @@ const App = () => {
104
104
case "info" :
105
105
dispatch ( {
106
106
type : "info" ,
107
- viewers : JSON . parse ( msg . data ) . no_connections ,
107
+ viewers : msg . data . no_connections ,
108
108
} ) ;
109
109
}
110
110
} ;
You can’t perform that action at this time.
0 commit comments