Resource-View-Presenter for socket io