commit | author | age
|
d8c7af
|
1 |
//// |
L |
2 |
//// MQTTWebsocketTransport.h |
|
3 |
//// MQTTClient |
|
4 |
//// |
|
5 |
//// Created by Christoph Krey on 06.12.15. |
|
6 |
//// Copyright © 2015-2016 Christoph Krey. All rights reserved. |
|
7 |
//// |
ea8e18
|
8 |
// |
d8c7af
|
9 |
//#import <Foundation/Foundation.h> |
L |
10 |
//#import "MQTTTransport.h" |
|
11 |
//#import <SocketRocket/SRWebSocket.h> |
ea8e18
|
12 |
// |
d8c7af
|
13 |
///** MQTTCFSocketTransport |
L |
14 |
// * implements an MQTTTransport on top of Websockets (SocketRocket) |
|
15 |
// */ |
|
16 |
//@interface MQTTWebsocketTransport : MQTTTransport <MQTTTransport, SRWebSocketDelegate> |
ea8e18
|
17 |
// |
d8c7af
|
18 |
///** host an NSString containing the hostName or IP address of the host to connect to |
L |
19 |
// * defaults to @"localhost" |
|
20 |
//*/ |
|
21 |
//@property (strong, nonatomic) NSString *host; |
|
22 |
// |
|
23 |
///** port an unsigned 16 bit integer containing the IP port number to connect to |
|
24 |
// * defaults to 80 |
|
25 |
// */ |
|
26 |
//@property (nonatomic) UInt16 port; |
|
27 |
// |
|
28 |
///** tls a boolean indicating whether the transport should be using security |
|
29 |
// * defaults to NO |
|
30 |
// */ |
|
31 |
//@property (nonatomic) BOOL tls; |
|
32 |
// |
|
33 |
///** path an NSString indicating the path component of the websocket URL request |
|
34 |
// * defaults to @"/html" |
|
35 |
// */ |
|
36 |
//@property (strong, nonatomic) NSString *path; |
|
37 |
// |
|
38 |
///** allowUntrustedCertificates a boolean indicating whether self signed or expired certificates should be accepted |
|
39 |
// * defaults to NO |
|
40 |
// */ |
|
41 |
//@property (nonatomic) BOOL allowUntrustedCertificates; |
|
42 |
// |
|
43 |
///** pinnedCertificates an NSArray containing certificates to validate server certificates against |
|
44 |
// * defaults to nil |
|
45 |
// */ |
|
46 |
//@property (strong, nonatomic) NSArray *pinnedCertificates; |
|
47 |
// |
|
48 |
// |
|
49 |
//@end |