HTTP/2 + websocket

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
stevie1401
User
User
Posts: 81
Joined: Sat Oct 18, 2014 7:14 am

Re: HTTP/2 + websocket

Post 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.
infratec
Always Here
Always Here
Posts: 7577
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: HTTP/2 + websocket

Post 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.
Quin
Addict
Addict
Posts: 1124
Joined: Thu Mar 31, 2022 7:03 pm
Location: Colorado, United States
Contact:

Re: HTTP/2 + websocket

Post 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!
Post Reply