def connect.tls
import bend-kit-websocket@0.4.0.0/websocket.bend as Websocketimport Base
905def connect.tls(r: Socket & Result<&1, &1, U32 & String, Unit>, +authority: String, +path: String, +max: U32, +ms: U32) -> IO(Result<&1, &1, U32 & String, Conn>):
906 match r:
907 case (sock, Fail{e}):
908 hs.fail(sock, False{}, e)
909 case (sock, Done{u}):
910 handshake(sock, True{}, authority, path, max, ms)