sS js_evalOnWebSocketMessage() { ret [[ function(event) { var data = JSON.parse(event.data); if (data.eval) { console.log("Evaluating: " + data.eval); var geval = eval; // use global scope geval(data.eval); console.log("Evaluated."); } } ]]; }
download show line numbers debug dex
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1030264 |
Snippet name: | js_evalOnWebSocketMessage |
Eternal ID of this version: | #1030264/1 |
Text MD5: | d985e1561a0e06fcd5bac5c1b4764b09 |
Author: | stefan |
Category: | javax / html |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-11-21 14:59:27 |
Source code size: | 317 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 11 / 17 |
Referenced in: | [show references] |
Formerly at http://tinybrain.de/1030264 & http://1030264.tinybrain.de