Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to replay lines from STDIN #5

Open
berkes opened this issue Sep 20, 2022 · 0 comments
Open

Ability to replay lines from STDIN #5

berkes opened this issue Sep 20, 2022 · 0 comments

Comments

@berkes
Copy link
Owner

berkes commented Sep 20, 2022

webmocket < ./file_with_ws_message_per_line

Difficulty is that we should start outputting to the Websocket only after a client connects, or else that client will miss lines until it is successfully connected.

Acceptance criteria:

Given a file with two lines:
hello from server line 1
hello from server line 2
When I run websocket and pipe that file into STDIN
And when I then connect a client to the WS port
Then I expect to receive the piped in messages after a small (<1s) delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant