MCPcopy Index your code
hub / github.com/SocketCluster/socketcluster / attachUnloadHandler

Function attachUnloadHandler

app/public/socketcluster-client.js:286–291  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

284 let isUnloadHandlerAttached = false;
285
286 let attachUnloadHandler = () => {
287 if (!isUnloadHandlerAttached) {
288 isUnloadHandlerAttached = true;
289 global.addEventListener('beforeunload', unloadHandler, false);
290 }
291 };
292
293 let detachUnloadHandler = () => {
294 if (isUnloadHandlerAttached) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…