wrap a program to accept input from websocket
break down the difference between two js dates into customisable units