Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

[WIP] NUClearNet streams #154

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

[WIP] NUClearNet streams #154

wants to merge 9 commits into from

Conversation

BrendanAnnable
Copy link
Member

@BrendanAnnable BrendanAnnable commented Jan 14, 2018

The intention of this PR is to harness the inbuilt backpressure feature of node streams, such that a slower browser connection would also slow down the websocket, such that we can simply pipe a NUClearNetStream to a WebSocketStream and compose them with whatever other streams we might find useful.

Currently broken because this line prevents any other messages being sent until an ack is received.

At this point I think we cannot rely on node as much as I would have liked, and need WebSocketStream to have its own adaptive throttling mechanism.

@BrendanAnnable BrendanAnnable temporarily deployed to nusight-pr-154 January 14, 2018 10:19 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant