Conforms to NSObject
Declared in SRConnection.h

Overview

The delegate of a SRConnection object can optionally adapt the SRConnectionDelegate protocol. The methods of the protocol allow the delegate to receive update when events occur on the SRConnection object some of these event include; the connection being opened, reconnected, closed and when data or an error is received.

Tasks

Instance Methods

SRConnection:didReceiveData:

Called when the SRConnection receives data

- (void)SRConnection:(SRConnection *)connection didReceiveData:(NSString *)data

Parameters

connection

the SRConnection object dispatching the event

data

the data received

Declared In

SRConnection.h

SRConnection:didReceiveError:

Called when the SRConnection receives an error

- (void)SRConnection:(SRConnection *)connection didReceiveError:(NSError *)error

Parameters

connection

the SRConnection object dispatching the event

error

the NSError received

Declared In

SRConnection.h

SRConnectionDidClose:

Called when the SRConnection is closed

- (void)SRConnectionDidClose:(SRConnection *)connection

Parameters

connection

the SRConnection object dispatching the event

Declared In

SRConnection.h

SRConnectionDidOpen:

Called when the SRConnection is opened

- (void)SRConnectionDidOpen:(SRConnection *)connection

Parameters

connection

the SRConnection object dispatching the event

Declared In

SRConnection.h

SRConnectionDidReconnect:

Called when the SRConnection is reconnected

- (void)SRConnectionDidReconnect:(SRConnection *)connection

Parameters

connection

the SRConnection object dispatching the event

Declared In

SRConnection.h