WebSocket update

Updated app to handle web sockets.