Closed
Description
Hi! I am toying with the idea of writing a web socket server in Purescript. That would require access to the upgrade
events emitted by Node's HTTP servers. It seems like this is not currently supported, right?
I think something like onUpgrade :: Server -> (Request -> Socket -> Buffer -> Effect Unit) -> Effect Unit
would do the trick.
I understand this a niche use case and that client code could go down to the FFI and wrap this itself. But, since this is part of Node's public API, maybe it would make sense to expose this functionality here.
If this sounds like something that this library would want to support, I'd be happy to submit a PR.
Metadata
Metadata
Assignees
Labels
No labels