unisonweb / base

Unison base libraries

Home Page:https://share.unison-lang.org/@unison/base

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Revamp `TlsSocket` API

pchiusano opened this issue · comments

TlsSocket will pick up an additional argument, the underlying Socket.

TlsSocket.close will then terminate the underlying Tls and close the Socket.

@stew also suggested that TlsSocket.create could just do the handshaking:

or TlsSocket create function could just take HostName and Port instead of Socket, and just rename terminate to close

convo in Slack

With the existence of https://share.unison-lang.org/@runarorama/tls-simple, snoozing this for now.