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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Who put fruit in my meat? Pete 0 153 02-03-2026, 12:05 AM
Last Post: Pete
Question reading multiple mice absolute position, keyboard with raw input api ? madscijr 1 754 05-29-2024, 05:38 PM
Last Post: madscijr
  Get , Put CSslymer 5 1,130 01-29-2023, 05:16 PM
Last Post: bplus

Forum Jump:


Users browsing this thread: 1 Guest(s)