Nhowka / Elmish.Bridge

Create client-server Fable-Elmish apps keeping a single mindset
MIT License
138 stars 17 forks source link

Order of broadcast messages #38

Open pw242 opened 2 years ago

pw242 commented 2 years ago

When using several BroadcastClient(msg) in sequence, it seems that the client does not receive the messages in the same order. Is this intended? Is there a way to preserve the order?

Nhowka commented 2 years ago

The client process the websocket messages as they come. The websocket protocol guarantees the order of the messages, but maybe a big message might be deserialized slower than the next small message and enter the elmish loop in the wrong order. Can you check if the websocket is receiving the message in the right order?