MCPcopy Index your code
hub / github.com/pywebio/PyWebIO / start_session

Function start_session

webiojs/src/main.ts:72–80  ·  view source on GitHub ↗
(is_http: boolean)

Source from the content-addressed store, hash-verified

70 const backend_addr = backend_absaddr(options.backend_address);
71
72 let start_session = (is_http: boolean) => {
73 let session;
74 if (is_http)
75 session = new HttpSession(backend_addr, options.app_name, appConfig.httpPullInterval);
76 else
77 session = new WebSocketSession(backend_addr, options.app_name);
78 set_up_session(session, options.output_container_elem, options.input_container_elem);
79 session.start_session(appConfig.debug);
80 };
81 if (options.protocol == 'auto')
82 is_http_backend(backend_addr).then(start_session);
83 else

Callers 1

startWebIOClientFunction · 0.85

Calls 2

set_up_sessionFunction · 0.85
start_sessionMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…