Subscribe to event type and message.
This mirrors a change in the client where we extract the type of the event.
This commit is contained in:
parent
5cae71653f
commit
1d9a184140
|
@ -370,8 +370,11 @@ export default class Client {
|
||||||
.replace("{types}", "*")
|
.replace("{types}", "*")
|
||||||
.replace("{closeafter}", "no")
|
.replace("{closeafter}", "no")
|
||||||
.replace("{ping}", "60");
|
.replace("{ping}", "60");
|
||||||
this.jclient.subscribeToEvents(eventSourceUrl, (e) => {
|
this.jclient.subscribeToEvents(
|
||||||
console.log("Got an event!", e);
|
eventSourceUrl,
|
||||||
});
|
(type: string, message: PushMessage) => {
|
||||||
|
console.log("Got an event!", type, message);
|
||||||
|
},
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 2ef5f5b7fa0a22a499bd32831ac24622f17e10e6
|
Subproject commit 5cf6129a517224b90f79cb96f212d57c5bceb51f
|
Loading…
Reference in New Issue