connected up the server with the front end using web sockets. hooray for .