Skip to content

Commit

Permalink
fix: stringify queued objects when sending over WebSocket
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Mar 28, 2020
1 parent a8af344 commit 6c45374
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cosmic-swingset/lib/ag-solo/html/wallet-bridge.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
console.log('sending', wsQueue.length, 'queued messages from', origin);
}
while (wsQueue.length) {
ws.send(wsQueue.shift());
// The queued messages are raw objects, so JSONify.
ws.send(JSON.stringify(wsQueue.shift()));
}
});

Expand Down

0 comments on commit 6c45374

Please sign in to comment.