Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use with TLS? #20

Open
jchia opened this issue Dec 7, 2021 · 0 comments
Open

How to use with TLS? #20

jchia opened this issue Dec 7, 2021 · 0 comments

Comments

@jchia
Copy link

jchia commented Dec 7, 2021

How should this library be used with TLS connections? I don't see any function to help with opening a TLS connection. Is the user supposed to handle TLS himself by using another package such as tls?

tls has a Network.TLS.contextNew for making a new Context, which is used to send and receive data with tls. However, haskell-xmpp uses Handle instead. E.g. Network.XMPP.Core.initStream uses a Handle instead of a tls Context or more generally a pair of functions for sending and receiving.

Is there a recommended way to use TLS in general or tls in particular?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant