Implemented trends with web sockets