Skip to content

Commit 4cb56a7

Browse files
committed
Add more clarity to README 'Done vs Close'
1 parent 3277bca commit 4cb56a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ es.addEventListener("close", (event) => {
6363
### Done vs Close
6464

6565
`done` events will fire when server closes the connection.
66-
Reconnections will occur indefinitely, unless this behavior is disabled.
66+
By default, the client will automatically reconnect when this happens.
67+
You can disable reconnections by setting the `pollingInterval` option to `0`.
6768
`close` events will fire when the connection is terminated by the client, using `.close()`.
6869

6970
### Headers and params

0 commit comments

Comments
 (0)