SRConnectionDelegate Protocol Reference
| 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
- 
	
		
– SRConnectionDidOpen:Called when the
SRConnectionis opened - 
	
		
– SRConnectionDidReconnect:Called when the
SRConnectionis reconnected - 
	
		
– SRConnection:didReceiveData:Called when the
SRConnectionreceives data - 
	
		
– SRConnectionDidClose:Called when the
SRConnectionis closed - 
	
		
– SRConnection:didReceiveError:Called when the
SRConnectionreceives an error 
Instance Methods
SRConnection:didReceiveData:
Called when the SRConnection receives data
- (void)SRConnection:(SRConnection *)connection didReceiveData:(NSString *)dataDeclared In
SRConnection.hSRConnection:didReceiveError:
Called when the SRConnection receives an error
- (void)SRConnection:(SRConnection *)connection didReceiveError:(NSError *)errorDeclared In
SRConnection.hSRConnectionDidClose:
Called when the SRConnection is closed
- (void)SRConnectionDidClose:(SRConnection *)connectionParameters
- connection
 the
SRConnectionobject dispatching the event
Declared In
SRConnection.hSRConnectionDidOpen:
Called when the SRConnection is opened
- (void)SRConnectionDidOpen:(SRConnection *)connectionParameters
- connection
 the
SRConnectionobject dispatching the event
Declared In
SRConnection.hSRConnectionDidReconnect:
Called when the SRConnection is reconnected
- (void)SRConnectionDidReconnect:(SRConnection *)connectionParameters
- connection
 the
SRConnectionobject dispatching the event
Declared In
SRConnection.h