Observer pattern in ws-handler