Title: add support for the `upgrade` event · Issue #32 · purescript-node/purescript-node-http · GitHub
Open Graph Title: add support for the `upgrade` event · Issue #32 · purescript-node/purescript-node-http
X Title: add support for the `upgrade` event · Issue #32 · purescript-node/purescript-node-http
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 onUp...
Open Graph 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 suppo...
X 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 s...
Opengraph URL: https://github.com/purescript-node/purescript-node-http/issues/32
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"add support for the `upgrade` event","articleBody":"Hi! I am toying with the idea of writing a web socket server in Purescript. That would require access to the [`upgrade` events](https://nodejs.org/dist/latest-v14.x/docs/api/http.html#http_event_upgrade_1) emitted by Node's HTTP servers. It seems like this is not currently supported, right?\r\n\r\nI think something like `onUpgrade :: Server -> (Request -> Socket -> Buffer -> Effect Unit) -> Effect Unit` would do the trick.\r\n\r\nI 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.\r\n\r\nIf this sounds like something that this library would want to support, I'd be happy to submit a PR.","author":{"url":"https://github.com/VFabricio","@type":"Person","name":"VFabricio"},"datePublished":"2020-12-28T15:47:16Z","url":"https://github.com/purescript-node/purescript-node-http/issues/32"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1f12a2e4-be04-9e39-c3eb-0d516c14133d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA78:34E1F6:2BA884:3C889F:6AFC4027 |
| html-safe-nonce | 4243dbb9abfac384e3267e698ff9c34767ff952457460bad65b86d9915db055b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTc4OjM0RTFGNjoyQkE4ODQ6M0M4ODlGOjZBRkM0MDI3IiwidmlzaXRvcl9pZCI6Ijg1Mzc0MjgzNjk0OTMyMTMyMjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a84bc787352ef6462ac830dd46a8385c1584f04d2ad07fc4a3955e3719bf54ec |
| hovercard-subject-tag | issue:775463263 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/purescript-node/purescript-node-http/32/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ca22daf6894c1e690a96856752a5be24812a06ea5fc9a90dd62fd3d0f88c469e/purescript-node/purescript-node-http/issues/32 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ca22daf6894c1e690a96856752a5be24812a06ea5fc9a90dd62fd3d0f88c469e/purescript-node/purescript-node-http/issues/32 |
| og:image:alt | 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 suppo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | VFabricio |
| hostname | github.com |
| expected-hostname | github.com |
| None | 138a70cb4bc2c69b4801d467877f4641b62463a066528f4dd4df24b97eeed46b |
| turbo-cache-control | no-preview |
| go-import | github.com/purescript-node/purescript-node-http git https://github.com/purescript-node/purescript-node-http.git |
| octolytics-dimension-user_id | 12017641 |
| octolytics-dimension-user_login | purescript-node |
| octolytics-dimension-repository_id | 43017993 |
| octolytics-dimension-repository_nwo | purescript-node/purescript-node-http |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 43017993 |
| octolytics-dimension-repository_network_root_nwo | purescript-node/purescript-node-http |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 70f0e91eb87e338c4fa4dd130853ed898632c0c4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width