File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
internal_filesystem/apps/com.example.btcticker/assets Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 99port = 443
1010handshake_path = '/raw'
1111# Option: echo.websocket.events (unreliable)
12- # host = 'echo.websocket.events'
13- # handshake_path = '/'
12+ #host = 'echo.websocket.events'
13+ #handshake_path = '/'
1414
1515try :
1616 addr_info = socket .getaddrinfo (host , port )[0 ][- 1 ]
Original file line number Diff line number Diff line change 1515try :
1616 URL = sys .argv [1 ] # expects a websocket echo server
1717except Exception :
18- URL = "ws://echo.websocket.events"
18+ # URL = "ws://echo.websocket.events" # also works
19+ URL = "wss://echo.websocket.events"
1920
2021
2122sslctx = False
2425 try :
2526 sslctx = ssl .SSLContext (ssl .PROTOCOL_TLS_CLIENT )
2627 sslctx .verify_mode = ssl .CERT_NONE
28+ #sslctx.verify_mode = ssl.CERT_REQUIRED # doesn't work because OSError: (-30336, 'MBEDTLS_ERR_SSL_CA_CHAIN_REQUIRED')
2729 except Exception :
2830 pass
2931
You can’t perform that action at this time.
0 commit comments