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

9
LINES

< > TinyBrain | #1009202 - webSocketFactory - turn function into WebSocketFactory

JavaX fragment (include)

static WebSocketFactory webSocketFactory(fO factory) {
  if (factory << WebSocketFactory) ret factory/WebSocketFactory;
  if (factory == null) null;
  ret new WebSocketFactory {
    public WebSocket openWebSocket(NanoHTTPD.IHTTPSession handshake) {
      ret (WebSocket) callF(factory, handshake);
    }
  };
}

download  show line numbers  debug dex   

Travelled to 2 computer(s): cfunsshuasjs, tvejysmllsmz

No comments. add comment

Snippet ID: #1009202
Snippet name: webSocketFactory - turn function into WebSocketFactory
Eternal ID of this version: #1009202/1
Text MD5: b770f3f81724ab383ff84da083926803
Author: stefan
Category: javax / networking
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-07-16 15:39:34
Source code size: 318 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 14 / 15
Referenced in: [show]