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 4040 obj.Specs.Host = ' http://stream.plot.ly' ;
4141 end
4242
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
4356 % initialize connection settings
4457 obj.Specs.ReconnectOn = {' ' ,' 200' ,' 408' };
4558 obj.Specs.Timeout = 500 ;
98111 ' online documentation found @ plot.ly/matlab for more information or contact ' ,...
99112 ' chuck@plot.ly' ]);
100113 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-
107114 end
108115
109116 % -----------OPEN STREAM-----------%
You can’t perform that action at this time.
0 commit comments