Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Kill connections on refresh

Compare
Choose a tag to compare
@jordanbyron jordanbyron released this 27 Oct 12:49
· 31 commits to master since this release

Prior to this release, refreshing in development mode wouldn't kill connections allowing them to stack up and cause odd behaviors. This release fixes that AND adds better error message support:

DeviceEventEmitter.addListener('EventSourceError', function(error) {
  console.log(error.domain);
  console.log(error.code);
  console.log(error.description);
});

🚒 Enjoy!