WSCMessagingDelegate Protocol Reference

Conforms to NSObject
Declared in WSCMessagingPackage.h

Overview

Delegate protocol for Messaging to receive incoming messages and acknowledgments.

– onNewMessage:extHeaders: required method

Called when a new incoming Message has arrived.

- (void)onNewMessage:(WSCMessagingMessage *)message extHeaders:(NSDictionary *)extHeaders

Parameters

message

Message that was received

extHeaders

Dictionary of extension headers

Discussion

Called when a new incoming Message has arrived.

Declared In

WSCMessagingPackage.h

– onSuccessResponse:extHeaders: required method

Called when an acknowledgement (accepted on the other side) for sent message has arrived.

- (void)onSuccessResponse:(WSCMessagingMessage *)message extHeaders:(NSDictionary *)extHeaders

Parameters

message

Message for which ack is received

extHeaders

Dictionary of extension headers

Discussion

Called when an acknowledgement (accepted on the other side) for sent message has arrived.

Declared In

WSCMessagingPackage.h

– onErrorResponse:cause:reason:extHeaders: required method

Called when a negative acknowledgement (rejected on the other side) for sent message has arrived.

- (void)onErrorResponse:(WSCMessagingMessage *)message cause:(WSCCause *)cause reason:(NSString *)reason extHeaders:(NSDictionary *)extHeaders

Parameters

message

Message for which ack is received.

cause

cause for error.

reason

textual description on the error response.

extHeaders

Dictionary of extension headers.

Discussion

Called when a negative acknowledgement (rejected on the other side) for sent message has arrived.

Declared In

WSCMessagingPackage.h