HTML and CSS Reference
In-Depth Information
2. Download the UnittWebSocketClient library and include it in your pro-
ject. This library handles most of the WebSocket functionality. You can pick
another one or implement your own. Follow the directions specified at ht-
tps:// .
3. Include the header files of the library in your project and specify your View
Controllerasa WebSocketDelegate .Thensubscribeforthecorresponding
events, which are identical to the JavaScript ones:
// ViewController.h
#import <UIKit/UIKit.h>
#import "WebSocket.h"
@interface ViewController :
UIViewController <WebSocketDelegate>
// ViewController.m
#import "ViewController.h"
Search WWH ::

Custom Search