Page 2 of 2

Re: HTTP/2 + websocket

Posted: Sat Apr 19, 2025 8:22 pm
by stevie1401
The client doesn't work properly yet.
It would be much nicer and certainly easier if PureBasic offered websockets.
Other languages ​​do that too.

Re: HTTP/2 + websocket

Posted: Sat Apr 19, 2025 9:47 pm
by infratec
In C it is not integrated. You need an external library or write it by yourself.
The same in most other languages.
I know only javascript, where it is really integrated,

If 'the client' is not working, Simply choose a C library/dll and write a wrapper for PB.
Then it is 'integrated' as in other languages.
You can take libwebsockets for example. the PB community will appreciate it.

Or you can use a webviewgadget and javascript to implement a client.

Re: HTTP/2 + websocket

Posted: Sat Apr 19, 2025 10:50 pm
by Quin
infratec wrote: Sat Apr 19, 2025 9:47 pm In C it is not integrated. You need an external library or write it by yourself.
The same in most other languages.
I know only javascript, where it is really integrated,
To be fair, you could say this for a loooot of the libraries PureBasic supports.
a WebSocket library in the PB standard library wrapping libwebsockets or similar would be super super cool!