Can websocket messages arrive out-of-order?

前端 未结 3 786
夕颜
夕颜 2020-12-03 00:35

If we send two messages over the same html5 websocket a split millisecond apart from each other,

Is it theoretically possible for the messages to arrive in a differ

3条回答
  •  暖寄归人
    2020-12-03 01:13

    It's not possible for them to arrive in your application out of order. Anything can happen on the network, but TCP will only present you the bytes in the order they were sent.

提交回复
热议问题