r/javascript • u/Browhair3834 • 7d ago
Remote procedure calls for interactive applications
https://willybrauner.com/journal/remote-procedure-calls-for-interactive-applications
7
Upvotes
0
u/Discordbothost 6d ago
A disconnect can hide a successful LED update. Try cutting the socket right after an update, then read the board state on reconnect before replaying commands. Repeating a toggle can undo the first call.
1
u/Ronin-s_Spirit 4d ago
You wrote a whole article on it? It's nothing more than just awaiting a fetch, but you put the fetch behind a function so it's clean and easy to use.