Libraryless. Click here for Pure Java version (1937L/13K/44K).
!7 html { ret htitle("Live Webs Count") + hfullcenter("Live webs count:<br><br>" + hloadjquery() + hdiv("bla<br>", id := "bla", style := "font-size: 40px") + hjavascript_src_snippet(#1013374 /*#1013375*/) // ReconnectingWebSocket + hjavascript([[ var ws = new ReconnectingWebSocket("ws://smartbot.botcompany.de/"); ws.onopen = function(event) { //ws.send("Here is an important message!"); ws.send("stream-big-number"); $("#bla").append("Streaming...<br>"); }; ws.onmessage = function(event) { $("#bla").html(event.data); document.title = event.data; }; ]])); }
Began life as a copy of #1013356
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1013377 |
| Snippet name: | Test ReconnectingWebSocket [Dyn, OK] |
| Eternal ID of this version: | #1013377/6 |
| Text MD5: | e0b3de1e30a685adc33262bc0678a94b |
| Transpilation MD5: | 17f7addd7de242f848ea64c099f51521 |
| Author: | stefan |
| Category: | javax / networking |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-01-03 22:30:32 |
| Source code size: | 697 bytes / 21 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 605 / 793 |
| Version history: | 5 change(s) |
| Referenced in: | -