Skip to content

Instantly share code, notes, and snippets.

@FranciscoMarinho
Last active January 21, 2021 21:47
Show Gist options
  • Select an option

  • Save FranciscoMarinho/7de97bc21b66bdc98be5cb1796853a38 to your computer and use it in GitHub Desktop.

Select an option

Save FranciscoMarinho/7de97bc21b66bdc98be5cb1796853a38 to your computer and use it in GitHub Desktop.
reconnect() {
if (!!this.connectionID) {
this.navigator.defaultRequest.reconnect(this.connectionID).then((connection: any) => {
this.connectionID = connection.id;
this.connection = connection;
}).catch( error => {
console.log('error ' + error.name + ': ' + error.message);
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment