Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1016455 // Connect To Server [Web Socket version, Dyn Module]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 115K of libraries. Click here for Pure Java version (8786L/60K).

1  
!7
2  
3  
sclass ConnectToServer extends DynBigNumber {
4  
  void start {
5  
    super.start();
6  
    thread "Connect" {
7  
      set webSocketOnMessage_withIdler_verbose;
8  
      ownTimer(webSocketOnMessage_withIdler(webSocketButterBot(#1016453) + "/" + computerID(), voidfunc(S s) {
9  
        print("Have msg: " + s);
10  
        if (isInteger(s)) setValue(s);
11  
      }, 30.0, ""), voidfunc(WebSocketClient ws) { ws.close() });
12  
      //print("Owned closer: " + closer + " in " + dm_current());
13  
    }
14  
  }
15  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016455
Snippet name: Connect To Server [Web Socket version, Dyn Module]
Eternal ID of this version: #1016455/11
Text MD5: efe08bad7c5de1c78c912dec9a76ca35
Transpilation MD5: b088d6ad00d67a5c8d82e56b01a93fc6
Author: stefan
Category: javax / stefan's os
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-24 01:05:20
Source code size: 495 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 533 / 10418
Version history: 10 change(s)
Referenced in: [show references]