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

7
LINES

< > BotCompany Repo | #1014672 // subBot_getMyWebSockets

JavaX fragment (include)

static Collection subBot_getMyWebSockets() {
  Collection sockets = filterByField((Collection) get(mainBot(), 'webSockets), botID := formattedProgramID());
  WeakReference ref = new(mc());
  for (O ws : sockets)
    setOpt(ws, bot := ref);
  ret sockets;
}

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: #1014672
Snippet name: subBot_getMyWebSockets
Eternal ID of this version: #1014672/4
Text MD5: df569ae2c712cf115c23e742ed7c87b9
Author: stefan
Category: javax / web
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-29 22:31:21
Source code size: 262 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 434 / 441
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)