id is not required on every message (notably init)

This commit is contained in:
Andreas Marek
2021-01-17 09:38:40 +11:00
parent 633ee1a1b5
commit edcd801c8c
2 changed files with 13 additions and 14 deletions

View File

@@ -32,8 +32,8 @@
// subscription
(async () => {
const onNext = () => {
console.log("Subscription data")
const onNext = (data) => {
console.log("Subscription data:", data);
};
await new Promise((resolve, reject) => {