NBMJSONRPCClientDelegate Protocol Reference

Conforms to NSObject
Declared in NBMJSONRPCClientDelegate.h

Overview

NBMJSONRPCClientDelegate is a protocol for an object that must be implemented to get messages from NBMJSONRPClient.

– clientDidConnect: required method

Sent when the client has opened websocket channel and become ready to send requests.

- (void)clientDidConnect:(NBMJSONRPCClient *)client

Parameters

client

The client sending the message.

Declared In

NBMJSONRPCClientDelegate.h

– clientDidDisconnect: required method

Sent when the client has closed websocket channel.

- (void)clientDidDisconnect:(NBMJSONRPCClient *)client

Parameters

client

The client sending the message.

Declared In

NBMJSONRPCClientDelegate.h

– client:didReceiveRequest: required method

Sent when the client has received a request (usually notifications).

- (void)client:(NBMJSONRPCClient *)client didReceiveRequest:(NBMRequest *)request

Parameters

client

The client sending the message.

request

The NBMRequest received by the client.

Declared In

NBMJSONRPCClientDelegate.h

– client:didFailWithError: required method

Sent when the client did encounter an error that forced websocket channel closing.

- (void)client:(NBMJSONRPCClient *)client didFailWithError:(NSError *)error

Parameters

client

The client sending the message.

error

The error indicating how the communication failed.

Declared In

NBMJSONRPCClientDelegate.h