In this case , Yes, the pascal code becomes javascript.
It is not really recommended to combine that with native units and that again n.b. Windows only units? Makes no sense..
You'd better use the network stack of Node.js or a browser.
Node.js is great for making desktop applications like you want and these would be true cross plastform.
You can use Node.js for both the client-side as the server-side.
But you can also force a browser in kiosk mode with much the same effect.
If you want scalable web applications, server or client, to a Pascal programmer the combination of Node.js and Pas2js is a marriage made in heaven.
Well, that's a good point, although I think that if I have to learn how to use the NodeJS API in Pascal that is going to be transpiled to Javascript it would be better to use JS directly.
Ok, maybe in the sense of writing the cleanest code as it is done with Typescript but that is not what I am looking for, which is to use all the capabilities of the language that I am going to use.
And well, the thing is that I would not only like to use network units like JwaWinsock2 and Sockets but I would also like to use other units and functions of the language, for example to manage hardware and to process files, all this showing a graphical interface written with HTML and CSS.
Of course, NodeJS may already have its own implementation of these features, but again, if I am going to transpile my Pascal code to Javascript, then it would be better to use the NodeJS ecosystem directly.
I hope I made myself clear. Thanks.
