replacing websocketmediator with anonymous actordsl