You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The node.js http module has had support for request.connection for ages (since version 0.3.0), it's just been poorly documented. Up until the 8.x series it was tucked away in the comment of the 'connection' event. Since then, it's had its own documentation. I'd like to propose we add support for connection, but it will require some work for the Socket it returns.
My guess (and what I mentioned on slack) is that we'll want a purescript-node/purescript-node-net package, where we have Socket and all its facilities defined. If that's the case, I'm more than happy to do the work if someone can make the repo. Then, we can expose connection :: Node.HTTP.Request -> Node.Net.Socket. Does that sound about right?
Activity
hdgarrood commentedon Apr 26, 2019
Sounds good to me. I guess we don’t yet have bindings for net.Server either?
hdgarrood commentedon May 7, 2019
@joneshf here you go: https://github.com/purescript-node/purescript-node-net
joneshf commentedon May 7, 2019
Thanks!
garyb commentedon May 7, 2019
I invited you to be an admin of the org a while back actually, did that ever come through?
joneshf commentedon May 7, 2019
Yeah, I accepted that as well (I'm just slow 😊). Thanks!
JordanMartinez commentedon Aug 1, 2023
Fixed by #49.