Skip to content

Can Ktor SSE heartbeat support a function to get the value instead of a fixed one? I want to include a timestamp when sending heartbeats. #5518

@shaolp

Description

@shaolp

Currently, the SSE heartbeat event is a fixed value set at configuration time. I need to include a timestamp on each heartbeat, so the heartbeat event should be generated by a suspend function or lambda at runtime, not a static value. Please allow something like:

Thank you for your understanding and cooperation! 🙏

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