Make sockets MVC-like on the client.