Checklist: Build Objective-C (iOS) Clients Using Kaazing WebSocket Gateway

This checklist provides the steps necessary to create an Objective-C client using the Kaazing WebSocket Gateway Objective-C Client API:

# Step Topic or Reference
1 Learn about supported browsers, operating systems, and platform versions. Release Notes
2 Learn how to use the Objective-C Client API. Use the Kaazing WebSocket Gateway Objective-C Client API
3 Learn how to authenticate your client by implementing a challenge handler to respond to authentication challenges from the Gateway. Secure Your Objective-C Client
4 Learn how to gather data on Kaazing WebSocket Gateway
Objective-C client.
Display Logs for the Objective-C Client
5 Troubleshoot the most common issues that occur when using Objective-C clients. Troubleshoot Your Objective-C Client

Introduction

In this how-to, you will learn how to use the Kaazing WebSocket Gateway Objective-C client libraries available in Kaazing WebSocket Gateway to enable your iOS client to communicate with any back-end service using Objective-C.

This document contains information for an Objective-C developer who wants to add Objective-C to an iOS client to enable communication with a back-end server through the Gateway.

For more information, see Objective-C Client API.

WebSocket and Objective-C

Kaazing WebSocket Gateway provides support for its HTML5 Communication protocol libraries in Objective-C. Using the Objective-C Client API, you can enable the HTML5 WebSocket protocols in new or existing Objective-C applications. For example, you can create an Objective-C client to get streaming financial or news data from a back-end server using WebSocket. The following figure shows a high-level overview of the architecture:

Figure: Enable Communication Between Your iOS Client and a Back-end Server over WebSocket

Taking a Look at the Objective-C Client Demo

Before you start, take a look at an out of the box demo built using the Objective-C Client API:

  1. Start the Gateway as described in How do I start and stop the Gateway? in Setting Up Kaazing WebSocket Gateway.
  2. In a browser, navigate to the out of the box demos at http://localhost:8001/demo/core/ios/.
  3. You can build and run the out of the box iOS demo application by building the demo project using Xcode. Expand the file located at GATEWAY_HOME/demo/ios/kaazing-ios-demo.zip, open the project file html5.client.ios.demo.xcodeproj in Xcode, and then run the application in the iPhone simulator. The demo application shows how use the Objective-C API to communicate with the Echo service running on the Gateway.
TOP