| | |
| | | //// |
| | | //// MQTTWebsocketTransport.h |
| | | //// MQTTClient |
| | | //// |
| | | //// Created by Christoph Krey on 06.12.15. |
| | | //// Copyright © 2015-2016 Christoph Krey. All rights reserved. |
| | | //// |
| | | // |
| | | // MQTTWebsocketTransport.h |
| | | // MQTTClient |
| | | //#import <Foundation/Foundation.h> |
| | | //#import "MQTTTransport.h" |
| | | //#import <SocketRocket/SRWebSocket.h> |
| | | // |
| | | // Created by Christoph Krey on 06.12.15. |
| | | // Copyright © 2015-2016 Christoph Krey. All rights reserved. |
| | | ///** MQTTCFSocketTransport |
| | | // * implements an MQTTTransport on top of Websockets (SocketRocket) |
| | | // */ |
| | | //@interface MQTTWebsocketTransport : MQTTTransport <MQTTTransport, SRWebSocketDelegate> |
| | | // |
| | | |
| | | #import <Foundation/Foundation.h> |
| | | #import "MQTTTransport.h" |
| | | #import <SocketRocket/SRWebSocket.h> |
| | | |
| | | /** MQTTCFSocketTransport |
| | | * implements an MQTTTransport on top of Websockets (SocketRocket) |
| | | */ |
| | | @interface MQTTWebsocketTransport : MQTTTransport <MQTTTransport, SRWebSocketDelegate> |
| | | |
| | | /** host an NSString containing the hostName or IP address of the host to connect to |
| | | * defaults to @"localhost" |
| | | */ |
| | | @property (strong, nonatomic) NSString *host; |
| | | |
| | | /** port an unsigned 16 bit integer containing the IP port number to connect to |
| | | * defaults to 80 |
| | | */ |
| | | @property (nonatomic) UInt16 port; |
| | | |
| | | /** tls a boolean indicating whether the transport should be using security |
| | | * defaults to NO |
| | | */ |
| | | @property (nonatomic) BOOL tls; |
| | | |
| | | /** path an NSString indicating the path component of the websocket URL request |
| | | * defaults to @"/html" |
| | | */ |
| | | @property (strong, nonatomic) NSString *path; |
| | | |
| | | /** allowUntrustedCertificates a boolean indicating whether self signed or expired certificates should be accepted |
| | | * defaults to NO |
| | | */ |
| | | @property (nonatomic) BOOL allowUntrustedCertificates; |
| | | |
| | | /** pinnedCertificates an NSArray containing certificates to validate server certificates against |
| | | * defaults to nil |
| | | */ |
| | | @property (strong, nonatomic) NSArray *pinnedCertificates; |
| | | |
| | | |
| | | @end |
| | | ///** host an NSString containing the hostName or IP address of the host to connect to |
| | | // * defaults to @"localhost" |
| | | //*/ |
| | | //@property (strong, nonatomic) NSString *host; |
| | | // |
| | | ///** port an unsigned 16 bit integer containing the IP port number to connect to |
| | | // * defaults to 80 |
| | | // */ |
| | | //@property (nonatomic) UInt16 port; |
| | | // |
| | | ///** tls a boolean indicating whether the transport should be using security |
| | | // * defaults to NO |
| | | // */ |
| | | //@property (nonatomic) BOOL tls; |
| | | // |
| | | ///** path an NSString indicating the path component of the websocket URL request |
| | | // * defaults to @"/html" |
| | | // */ |
| | | //@property (strong, nonatomic) NSString *path; |
| | | // |
| | | ///** allowUntrustedCertificates a boolean indicating whether self signed or expired certificates should be accepted |
| | | // * defaults to NO |
| | | // */ |
| | | //@property (nonatomic) BOOL allowUntrustedCertificates; |
| | | // |
| | | ///** pinnedCertificates an NSArray containing certificates to validate server certificates against |
| | | // * defaults to nil |
| | | // */ |
| | | //@property (strong, nonatomic) NSArray *pinnedCertificates; |
| | | // |
| | | // |
| | | //@end |