Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lesleyrs committed Jul 10, 2024
1 parent f31509d commit 4b7f433
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions src/js/jagex2/io/ClientWorkerStream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,33 +54,6 @@ export default class ClientWorkerStream {
console.log('connection error!');
}
}

// private onclose = (event: CloseEvent): void => {
// if (this.closed) {
// return;
// }
// this.close();
// };

// private onerror = (event: Event): void => {
// if (this.closed) {
// return;
// }
// this.ioerror = true;
// this.close();
// };

onerror = (event: Event): void => {
console.error('Error:', event);
};

onmessage = (event: Event): void => {
console.log('Message:', event);
};

onmessageerror = (event: Event): void => {
console.log('Message error:', event);
};
}

class WorkerWriter {
Expand Down

0 comments on commit 4b7f433

Please sign in to comment.