Function StreamPeerSSL.connectToStream
Connects to a peer using an underlying StreamPeer stream. If validate_certs is true, StreamPeerSSL will validate that the certificate presented by the peer matches the for_hostname.
Note: Specifying a custom valid_certificate is not supported in HTML5 exports due to browsers restrictions.
godot .core .defs .GodotError connectToStream
(
StreamPeer stream,
const(bool) validate_certs = false,
const(String) for_hostname = GodotStringLiteral() .str(),
X509Certificate valid_certificate = X509Certificate(godot_object(null), )
) nothrow @nogc;