A simple websocket server that tails a text file and emits the tail via websocket messags.
- nodejs v10.x
- yarn package manager
- typescript (npm i -g typescript)
Clone the repository:
git clone https://github.com/ExtraHash/websocket-tail
Change into the directory:
cd websocket-tail
Install the javascript dependencies:
yarn
Compile the typescript code:
tsc
node server.js --path path/to/text/file.log --port 11111
The port number is optional, it will default to port 8999 if none is specified.