< Table of Contents

Checklist: Build Objective-C (iOS) WebSocket Clients

This checklist provides the steps necessary to create an Objective-C WebSocket client using the Kaazing Objective-C WebSocket 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 WebSocket Client API. Use the Kaazing Objective-C WebSocket 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 the Kaazing 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 Enterprise Objective-C Client SDK to enable your iOS client to communicate with any back-end service using WebSocket.

For more information, see Objective-C WebSocket Client API.

WebSocket and Objective-C

Kaazing provides support for WebSocket in Objective-C. Using the Kaazing Enterprise Objective-C Client SDK, 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 Tutorial App

Before you start, take a look at the tutorial built using the Objective-C WebSocket Client API:

  1. Download the Objective-C (iOS) Tutorial from https://github.com/kaazing/ios.client.tutorials.
  2. Navigate to the WebSocket tutorial at ios.client.tutorials/ws/src/html5.client.ios.demo.xcodeproj.
  3. You can build and run the iOS tutorial app by building the project using Xcode. 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 a local or publicly available Gateway at wss://sandbox.kaazing.net/echo.