File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 40
40
obj.Specs.Host = ' http://stream.plot.ly' ;
41
41
end
42
42
43
+ % check if ssl is enabled
44
+ if any(strfind(obj .Specs .Host ,' https://' ) == 1 )
45
+ obj.Specs.SSLEnabled = true ;
46
+ else
47
+ obj.Specs.SSLEnabled = false ;
48
+ end
49
+
50
+ % add http if not present on host
51
+ if ~obj .Specs .SSLEnabled
52
+ if ~any(strfind(obj .Specs .Host ,' http://' ) == 1 )
53
+ obj.Specs.Host = [' http://' obj .Specs .Host ];
54
+ end
55
+ end
43
56
% initialize connection settings
44
57
obj.Specs.ReconnectOn = {' ' ,' 200' ,' 408' };
45
58
obj.Specs.Timeout = 500 ;
98
111
' online documentation found @ plot.ly/matlab for more information or contact ' ,...
99
112
100
113
end
101
-
102
- % add http if not present on host
103
- if ~any(strfind(obj .Specs .Host ,' http://' ) == 1 )
104
- obj.Specs.Host = [' http://' obj .Specs .Host ];
105
- end
106
-
107
114
end
108
115
109
116
% -----------OPEN STREAM-----------%
You can’t perform that action at this time.
0 commit comments