Skip to content

Commit

Permalink
Add connecting event to Controller
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielBaulig committed Feb 24, 2024
1 parent 14fec03 commit 2106f08
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ export default class Controller extends EventTarget {
eventSource.addEventListener("error", this.#onEventSourceError);
this.eventSource = eventSource;
this.connecting = true;

this.dispatchEvent(new Event('connecting'));
}

async post(path, query) {
Expand Down

0 comments on commit 2106f08

Please sign in to comment.