When you pass a server-side object such as testClient to client <@ ... @>, WebSharper serializes it to JSON and includes it in the rendered page so that the client side can deserialize and use it. So as long as your IClient instance is serializable according to the WebSharper JSON format, this should work.

By on 11/6/2018 8:52 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper