Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"Raw" (OBS) Websocket ws:// communication (_OpenClient, Get, Put), is it possible?
#4
(09-11-2023, 12:04 PM)loopy750 Wrote: I looked into this some time back but came to the conclusion that it's not possible with QB64, however, I never asked the good people here, who are much more knowledgeable than I.

Here is the documentation with connection steps: https://github.com/obsproject/obs-websoc...tion-steps

I understand the process with HTTP and sending headers etc ("User-Agent: curl/8.1.2" for example), and doing a search, this post suggests it might be possible, but there's no code to investigate https://qb64phoenix.com/forum/showthread...0#pid12740
It's definitely possible, but it would be a bit of a pain. Doing it via a TCP/IP client would require implementing both the HTTP protocol and the WebSockets protocol yourself, which is possible but hard. Additionally doing it with SSL/TLS security would be even harder since you'd need to get a TLS library in the mix there somewhere (there's little hope of implementing that yourself).

In regards to what @mnrvovrfc mentioned, QB64-PE does have built-in HTTP and HTTPS support, but currently it can't be used to open a WebSockets connection. Based on the libcurl documentation we could probably add that in the future, but there's no timeline on that. Potentially you could interact with `libcurl` yourself to do it but you'd really need to use a bit (or a lot) of C++ for that.
Reply


Messages In This Thread
RE: "Raw" (OBS) Websocket ws:// communication (_OpenClient, Get, Put), is it possible? - by DSMan195276 - 09-11-2023, 04:52 PM



Users browsing this thread: 1 Guest(s)