fb-messenger-cli icon indicating copy to clipboard operation
fb-messenger-cli copied to clipboard

out of order outgoing messages

Open CSRessel opened this issue 6 years ago • 1 comments

Running macOS 10.13.3, node v6.14.2, fb-messenger-cli 2.0.2

Steps to reproduce: Copy and paste triple newline-separated text into the terminal, such as the below:

A


B


C


D


Expected:

A
B
C
D

Actual:

B
A
D
C

As far as I can tell this is non-deterministic ordering, but I haven't explored too rigorously.

CSRessel avatar Jun 21 '18 23:06 CSRessel

Interesting. How are you generating your new lines? My first instinct is to say that this sends 4 separate messages and the ordering is just based on which request hits the server first. I'll look into it, maybe we're not encoding the strings properly.

SamBergeron avatar Jun 27 '18 14:06 SamBergeron