fb-messenger-cli
fb-messenger-cli copied to clipboard
out of order outgoing messages
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.
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.