socket.io
socket.io copied to clipboard
Typescript error using http2 server
Describe the bug The socket.io Server constructor types do not include Http2SecureServer so there's a type error when instantiating a Server as per the documentation HTTP/2 example.
To Reproduce
Socket.IO server version: 4.5.1
Server Example directly from documentation
Example in Typescript Playground
Expected behavior No typescript errors