5 Commits

Author SHA1 Message Date
jakergrossman
90af5cba4a Use stat+stream instead of reading entire file on upload 2021-11-18 15:18:11 -06:00
jakergrossman
8d244e5166 Add logger, output 2021-11-18 12:00:46 -06:00
jakergrossman
95b23236e0 Add clarification comment to send 2021-11-18 00:38:07 -06:00
jakergrossman
92d42edaff Parse messages on arrival
Rather than queuing inbound messages, the HubController now saves
pending promises/rejects for each pending request. Each inbound packet
is checked at the time of arrival, and if the ID matches a pending
response, the corresponding promise is called.

This fixes a problem where the longer the time between reads, the more
garbage responses queue up that are guaranteed to get thrown away the
next time the next response was gathered.
2021-11-18 00:29:27 -06:00
jakergrossman
8ac7e2c5ea Implement HubController 2021-11-17 19:36:18 -06:00