Skip to content

Emitting 'stop' signal by client to abort an incoming message stream #39

@kaziller

Description

@kaziller

Hi there,
this is probably more a feature request rather than an issue. And it has not directly related to the SocketClient itself.

Proposal

Being able to emit a 'stop' signal so that the server stops streaming a message and the "finalPing" Signal is been sent earlier.

Reason

Sometimes the answer is taking a bit too long and/or the user realizes during response stream that the answer is not correct or the question has to be refined. In order not to wait until the whole message has been sent to the client, the client should be able to abort the request and fire another request right after.

Current workaround

In order to abort an incoming stream we are currently disconnecting the socket client and reconnecting it again. With that we can guarantee that we have another socket session and the previous answer will not continue to be streamed to the new socket client. Draw back is that it takes time to disconnect and connect the client. Also we are not sure if this is really good practice to do it like that.

Are there maybe other solutions already in place?

Thank you for your help!

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