websocket forked from zzstoatzz.io/websocket.zig

initWithStream: support TLS when config.tls is set

Previously initWithStream hardcoded tls_client to null, silently ignoring config.tls. Now it initializes TLS (using config.host for SNI) when requested, matching the behavior of init(). This enables callers that bring their own pre-connected stream (e.g. after resolving DNS through a separate Io backend) to still get TLS. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>


Author zzstoatzz Co-author Claude Opus 4.6 Date Commit Parent ac3df252
+7 -2
1 changed file
+7 -2
1 changed file