Web Socket subscription drops initial messages
See original GitHub issueHi @davesmith00000 šš½
Iāve been debugging all day (going crazy really š) a subtle issue with the Web Socket subscriptions and I now have a lead, but unfortunately not a fix yet.
As far I can observe, once a connection is established, there seems to be a delay in registering the subscription and so messages that arrive immediately are never processed by Tyrian, but they can be seen in the browserās developer console.
I think the last version where this was working as expected was 0.3.2, so shame on me, I havenāt properly tested my application to find this issue sooner.
I tried to minimize the example using the Echo Server from the examples. For example, there is a message saying āConnection madeā¦ā, which doesnāt get to Tyrian subs.
Long shot, but do you recall if this message was being processed on versions 0.3.2 and lower?
On my application, I temporarily added a delay before sending the Attached
message, but itās not a long-term solution.
Unrelated question: Is there a Matrix bridge for the Discord channel?
Issue Analytics
- State:
- Created a year ago
- Comments:9 (9 by maintainers)
Evening @gvolpe š
Mixed success. š
Discord:
t2bot looks easy enough, but I have no idea what Iām doing with Matrix itself. Iāll try and read up more tomorrow.
WebSockets
So itās late, and I could be making this up at this point, but hereās roughly what I think happens:
If Iām right, the fix is to not create/open the connection until weāre also in a position to register the subs in the same pass. Somehow.
Itās a theory. Iāll see if I can prove it, but probably not until the weekend unfortunatelyā¦
Given I only vaguely know what the means the answer is almost certainly, no, but happy to look into it?