Skip to content

Typescript error using http2 server #4434

Closed
@Jayce53

Description

@Jayce53

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions