socket.io icon indicating copy to clipboard operation
socket.io copied to clipboard

Typescript error using http2 server

Open Jayce53 opened this issue 3 years ago • 0 comments

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

Jayce53 avatar Jul 27 '22 04:07 Jayce53