tpeczek/Lib.AspNetCore.ServerSentEvents

Investigate Possibility of Providing "Disconnect" Functionality Based on Some Form of Client Identification and 204 Response Status

Closed this issue · 0 comments

Server Sent-Events provides a theoretical way for disconnecting client from the server. The flow is as follows:

  • Server disconnects the client by terminating a connection
  • Clients attempts to reconnect due to auto-reconnect
  • Server responds with 204 to reconnect attempt which prevents further reconnect attempts

This flow requires logical way of tracking clients so server can respond properly to reconnect attempt