Complete WebSocket transport implementation with TLS support

- Add TLS configuration support to new_host and new_swarm functions
- Fix WebSocket transport tests (test_wss_host_pair_data_exchange, test_wss_listen_without_tls_config)
- Integrate TLS configuration with transport registry for proper WebSocket WSS support
- Move debug files to downloads directory for future reference
- All 47 WebSocket tests now passing including WSS functionality
- Maintain backward compatibility with existing code
- Resolve all type checking and linting issues
This commit is contained in:
acul71
2025-09-17 03:08:24 -04:00
parent f4a4298c0f
commit a0cb6e3a30
6 changed files with 78 additions and 382 deletions

View File

@ -142,10 +142,10 @@ class WebsocketTransport(ITransport):
# Create our connection wrapper with both WSS support and flow control
conn = P2PWebSocketConnection(
ws,
None,
ws,
None,
is_secure=parsed.is_wss,
max_buffered_amount=self._max_buffered_amount
max_buffered_amount=self._max_buffered_amount,
)
logger.debug("WebsocketTransport.dial created P2PWebSocketConnection")