Compare commits

...

1 Commits

Author SHA1 Message Date
Eli Ribble 1d9a184140 Subscribe to event type and message.
This mirrors a change in the client where we extract the type of the
event.
2024-09-04 11:41:33 -07:00
2 changed files with 7 additions and 4 deletions

View File

@ -370,8 +370,11 @@ export default class Client {
.replace("{types}", "*")
.replace("{closeafter}", "no")
.replace("{ping}", "60");
this.jclient.subscribeToEvents(eventSourceUrl, (e) => {
console.log("Got an event!", e);
});
this.jclient.subscribeToEvents(
eventSourceUrl,
(type: string, message: PushMessage) => {
console.log("Got an event!", type, message);
},
);
}
}

@ -1 +1 @@
Subproject commit 2ef5f5b7fa0a22a499bd32831ac24622f17e10e6
Subproject commit 5cf6129a517224b90f79cb96f212d57c5bceb51f