working websockets and live graphing