Skip to content

Rust websocket listener logging username and datetime in SQLite database

Notifications You must be signed in to change notification settings

vsandstrom/DateTimeLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DateTimeLogger ( Work in progress )

Rust websocket listener logging a username with a timestamp in SQLite database

Proof of concept tested with chromes Smart Websocket Client

To run:

cargo run -- -n <user> [-i <ip-address> -p <port>] [-w] 

On first run, add a user in local mode.

cargo run -- -n "Ville Vässla"

The program will reject any attempt to enter a username not already added into database from a local machine.

After this it will register any request by that user through a websocket.

cargo run -- -n "Ville Vässla" -i 127.0.0.1 -p 8080 -w

To get a flashy usage message run:

cargo run -- -h

About

Rust websocket listener logging username and datetime in SQLite database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published