MCPcopy Create free account
hub / github.com/Yaffle/EventSource / close

Function close

tests/eventsource.js:918–929  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

916 };
917
918 var close = function () {
919 currentState = CLOSED;
920 if (abortController != undefined) {
921 abortController.abort();
922 abortController = undefined;
923 }
924 if (timeout !== 0) {
925 clearTimeout(timeout);
926 timeout = 0;
927 }
928 es.readyState = CLOSED;
929 };
930
931 var onTimeout = function () {
932 timeout = 0;

Callers 2

onStartFunction · 0.70
onTimeoutFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected