Mercurial > code > home > repos > light9
diff web/RdfDbChannel.ts @ 2421:ac55319a2eac
don't drop patches that arrive before we get WS connected
author | drewp@bigasterisk.com |
---|---|
date | Tue, 21 May 2024 16:10:39 -0700 |
parents | 4556eebe5d73 |
children |
line wrap: on
line diff
--- a/web/RdfDbChannel.ts Tue May 21 14:50:01 2024 -0700 +++ b/web/RdfDbChannel.ts Tue May 21 16:10:39 2024 -0700 @@ -48,6 +48,7 @@ sendMessage(body: string): boolean { // one try, best effort, true if we think it worked if (!this.ws || this.ws.readyState !== this.ws.OPEN) { + log("dropping message: " + body); return false; } log("send patch to server, " + body.length + " bytes");