IOS Streaming Browser 1.0
An IOS streaming browser to stream the display to others or to a projector

<WebSocketDelegate> Protocol Reference

#import <WebSocket.h>

Public Member Functions

(void) - webSocketDidOpen:
(void) - webSocket:didReceiveMessage:
(void) - webSocketDidClose:

Detailed Description

There are two ways to create your own custom WebSocket:

  • Subclass it and override the methods you're interested in.
  • Use traditional delegate paradigm along with your own custom class.

They both exist to allow for maximum flexibility. In most cases it will be easier to subclass WebSocket. However some circumstances may lead one to prefer standard delegate callbacks instead. One such example, you're already subclassing another class, so subclassing WebSocket isn't an option.

Definition at line 145 of file WebSocket.h.


Member Function Documentation

- (void) webSocket: (WebSocket *)  ws
didReceiveMessage: (NSString *)  msg 
[optional]

The websocket did receive an incoming message param WebSocket param NSString

- (void) webSocketDidClose: (WebSocket *)  ws [optional]

The websocket did close param WebSocket

- (void) webSocketDidOpen: (WebSocket *)  ws [optional]

The websocket did open param WebSocket


The documentation for this protocol was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Defines