wright
Members-
Content Count
37 -
Joined
-
Last visited
Everything posted by wright
-
How to connect to wss:// server ?
wright replied to wright's topic in ICS - Internet Component Suite
Hello guys! @Angus Robertson, any progress? -
tjsoniterator How to fill TListViewItem using TJsonIterator ?
wright replied to wright's topic in Network, Cloud and Web
It seems that TJSONIterator.Path doesn't read the values at all! i tried this and i still figure issues: cuisine doens't load. ............ ListView1.Items.BeginUpdate; try LStreamReader := TStreamReader.Create('../../resto.json', TEncoding.UTF8, True); LJsonTextReader := TJsonTextReader.Create(LStreamReader); oIter := TJSONIterator.Create(LJsonTextReader); while oIter.Next() do begin oItem := ListView1.Items.Add; for i := 1 to ListView1.Columns.Count - 1 do oItem.SubItems.Add(''); if oIter.&Type in [TJsonToken.StartObject, TJsonToken.StartArray] then begin oIter.Recurse; oIter.Next('name'); oItem.Caption := oIter.AsValue.ToString; oIter.Next('cuisine'); oItem.SubItems[0] := oIter.AsValue.ToString; end ......... ......... -
tjsoniterator How to fill TListViewItem using TJsonIterator ?
wright replied to wright's topic in Network, Cloud and Web
Yes! i did it before i posted but the result was ennoying and shown 0 lines. that's the reason i used the Json data as default. NB: i forgot to tell that the json data i used is a piece of code from the restaurant project inside Rad Studio samples which uses MongoDB as database: * navigate to: Object Pascal\Database\FireDAC\Samples\DBMS Specific\MongoDB\Restaurants * original Json: Object Pascal\Database\FireDAC\DB\Data\restaurants.json -
How to connect to wss:// server ?
wright replied to wright's topic in ICS - Internet Component Suite
Good news, Thank you! i appreciate! -
How to connect to wss:// server ?
wright replied to wright's topic in ICS - Internet Component Suite
really weird. In the meantime i tried with trial version of "IPWorks ssl" all is fine, works very well. I Think i have to check inside ICS and do a proper client as you said in the upper comments! That's the tricky part! -
How to connect to wss:// server ?
wright replied to wright's topic in ICS - Internet Component Suite
exactly what i did. via 2 sources: 1. https://en.wikipedia.org/wiki/WebSocket#Protocol_handshake 2. attached png but i don't know why in my case TCP proto doesn't work. im still learning delphi prog and websocket, i'll check again for a better workarround. -
How to connect to wss:// server ?
wright replied to wright's topic in ICS - Internet Component Suite
Seems to work! i change proto to UDP. but i think it's not right way to solve it. i dig. -
How to connect to wss:// server ?
wright replied to wright's topic in ICS - Internet Component Suite
Of course. i enabled ssl, socket familly: sfAny, -
How to connect to wss:// server ?
wright replied to wright's topic in ICS - Internet Component Suite
As @Angus Robertson reported; so i followed what you suggested. i got no error know but no connection or it seems attempting to connect. (Port 80 even with 443) -
How to connect to wss:// server ?
wright replied to wright's topic in ICS - Internet Component Suite
Hi, i forgot to said that i had already tried with only the hostname as you mentionned, but the error the same "cannot convert host address" -
How to connect to wss:// server ?
wright replied to wright's topic in ICS - Internet Component Suite
my bad thank you! -
Hello,I am learning to use the TJSONIterator(Readers and Writers JSON Framework) under delphi 10.3.3 and I found a russian link putting this into practice through the creation of an application assessing the negative impact on the environment: https://webdelphi.ru/. Firstly, i have a custom class definition named "NVOS.JsonParser.pas" and the "open-data-1.json" file, i don't know how to proceed However, I can't figure out already knowing that the result should look like: "App.png". open-data-1.json