fix(examples/chat): fix applyState call (#1760)

This commit is contained in:
Clemens Tolboom 2021-12-24 17:27:51 +01:00 committed by GitHub
parent 6b4ba7c925
commit b28ce1dc4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@
timeline.appendChild(messageDom(data));
});
ws.addEventListener("close", () => {
applyState({connect: false});
applyState({connected: false});
});
}
function close() {