Frontend for websockets