Skip to content

Use the "http.Server" type instead of "net.Server"#224

Open
theandrew168 wants to merge 1 commit intolukeed:nextfrom
theandrew168:fix-server-type
Open

Use the "http.Server" type instead of "net.Server"#224
theandrew168 wants to merge 1 commit intolukeed:nextfrom
theandrew168:fix-server-type

Conversation

@theandrew168
Copy link

@theandrew168 theandrew168 commented Jan 3, 2026

Hello, thanks for this project! While working on a PR for SvelteKit, I noticed that polka.server was typed as a net.Server instead of an http.Server. Since this project is a web server, I figured that using the latter would be more appropriate. It should be backwards compatible with all existing code because http.Server extends net.Server. Plus, it'll make the types more accurate for some of the tweaks made by SvelteKit's adapter-node (example, example).

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

Successfully merging this pull request may close these issues.

1 participant