(is_http: boolean)
| 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 |
no test coverage detected
searching dependent graphs…