Skip to content

A simple websocket server which can emit the tail of a text file to a client similar to tailing a file (tail -f)

License

Notifications You must be signed in to change notification settings

Sayuki0x/websocket-tail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

websocket-tail

A simple websocket server that tails a text file and emits the tail via websocket messags.

Dependencies

  • nodejs v10.x
  • yarn package manager
  • typescript (npm i -g typescript)

Installation

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

Usage

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.

About

A simple websocket server which can emit the tail of a text file to a client similar to tailing a file (tail -f)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published