Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Co-authored-by: Mehdi Achour <[email protected]>
  • Loading branch information
sergiodxa and machour authored Jul 23, 2023
1 parent 52d6374 commit def47ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1163,7 +1163,7 @@ The `event` name in both the event stream and the hook is optional, in which cas

For Server-Sent Events to work, your server must support HTTP streaming. If you don't get SSE to work check if your deployment platform has support for it.

Because SSE count towards the limit of HTTP connections per domain, the useEventSource hook keeps a global map of connections based on the provided URL and options, as long as they are the same the hook will open a single SSE connection and share it between instances of the hook.
Because SSE count towards the limit of HTTP connections per domain, the useEventSource hook keeps a global map of connections based on the provided URL and options, as long as they are the same, the hook will open a single SSE connection and share it between instances of the hook.

Once there are no more instances of the hook re-using a connection, it will be closed and removed from the map.

Expand Down

0 comments on commit def47ec

Please sign in to comment.