Skip to content

Persistent Connection / Keep-Alive Requests #1489

@matthewwoop

Description

@matthewwoop

Any recommendations on how to achieve a persistent connection between a Next app and an API.

Ideally, open the connection on componentWillMount and close the connection on componentWillUnmount

I have only found solutions that work either on the client (e.g. XMLHttpRequest) or the server (e.g. axios httpAgent), but not universally

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions