Resource-View-Presenter for socket.io sample