1 | static WebSocketFactory webSocketFactory(fO factory) { |
2 | if (factory instanceof WebSocketFactory) ret factory/WebSocketFactory; |
3 | if (factory == null) null; |
4 | ret new WebSocketFactory { |
5 | public WebSocket openWebSocket(NanoHTTPD.IHTTPSession handshake) { |
6 | ret (WebSocket) callF(factory, handshake); |
7 | } |
8 | }; |
9 | } |
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: | #1009202 |
Snippet name: | webSocketFactory - turn function into WebSocketFactory |
Eternal ID of this version: | #1009202/2 |
Text MD5: | 4239b000364f3da861ffa18cc5ca5b90 |
Author: | stefan |
Category: | javax / networking |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-05-20 18:35:57 |
Source code size: | 326 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 524 / 554 |
Version history: | 1 change(s) |
Referenced in: | [show references] |