// // MQTTWebsocketTransport.h // MQTTClient // // Created by Christoph Krey on 06.12.15. // Copyright © 2015-2016 Christoph Krey. All rights reserved. // #import #import "MQTTTransport.h" #import /** MQTTCFSocketTransport * implements an MQTTTransport on top of Websockets (SocketRocket) */ @interface MQTTWebsocketTransport : MQTTTransport /** 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