forked from graarh/golang-socketio
-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Just a heads-up with an issue that happened with me.
Lines 156 to 158 in 90487b6
| default: | |
| go e.processIncoming(c, decodedMessage) | |
| } |
isn't correct because sometimes you want to have a guarantee on the order of incoming messages.
Instead, you want to guarantee the order like so:
and let the consumer decides if he swaps a new goroutine for handling the message or handles it on the same one.
If you go to https://asciinema.org/a/192043 (between 1:57 and 2:15) and you see the execution of some shell commands you get why this is fundamental (every key you hit on the keyboard is an event).
Metadata
Metadata
Assignees
Labels
No labels