One of my most favorite features in the Communication Library for iOS is the support for server-side data push to iOS. We put together an example demonstrating the feature in action where a .NET server pushes real-time updates to an iPhone application. The example is demonstrated and reviewed in the video below. The instructions for running the example and the links for the source code are available below the video in this blog post. Enjoy!
Follow the steps below to deploy and run the example:
- Download and install the latest version of WebORB for .NET. (This post assumes the product is installed in the default installation directory. For the version 4.4, the installation directory is: c:/Program Files/WebORB for .NET/18.104.22.168/)
- Download the client-side project from:
(for additional examples, you can also download the Communication Library for iOS).
- Download the server-side project from:
- Open the server-side project in Visual Studio. Compile the project and make sure the compiled assembly is copied into the /bin folder in the WebORB installation directory (c:/Program Files/WebORB for .NET/22.214.171.124/)
- Create “StockExchange” directory under the “Applications” folder located at: c:/Program Files/WebORB for .NET/126.96.36.199/Applications)
- Create the app.config file in the StockExchange directory with the following contents:
<?xml version="1.0" encoding="utf-8"?> <configuration> <application-handler>StockExchange.AppHandler</application-handler> </configuration>
- Open the WebORB Management Console. Switch to the ‘Messaging Server’ tab and make sure the StockExchange application is listed under the Applications node in the tree.
- Run the iOS client application, enter the hostname for the server where WebORB for .NET is running and click Connect to establish a connection with the server-side application.