#file #file-content #port #data-file #host-port #yeets

bin+lib wsyeet

Yeets a file's content line-by-line to WebSocket

2 releases

0.2.1 Jun 13, 2023
0.2.0 Jun 13, 2023

#282 in WebSocket

GPL-3.0-or-later

25KB
136 lines

wsyeet

Reads data from a file and sends it to a websocket port line by line

Usage Example

wsyeet --host 0.0.0.0 --port 9999 --file ./mock_data.txt --verbose --freq 200

Options

-h,--help

  • Opens the help message and exit

-v,--verbose

  • Show log messages

-H,--host HOST

  • The WebSocket host address. Defaults to 127.0.0.1

-p,--port PORT

  • Sets the WebSocket port to send to. Defaults to 8888

-f,--file FILE

  • The file path to be read from.

-F,--freq FREQ

  • The frequency to send the data in ms. Defauls to 1000ms.

Dependencies

~7–15MB
~176K SLoC