split functionality of websocketview into own class, rest into mediator