-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Websocket stuck on "connecting" #742
Comments
You are already almost there! :) Seems like the problem is that you are not setting an opcode in accordance to the obs-websocket protocol. I think what you will have to do is send a The json object that you will have to send to OBS will have to look something like this:
Let me know if you have questions / run into issues! |
Thanks for the quick answer! I will admit this is outside of my expertise, and not sure how I personally can fix it. This is a websocket plugin for the game Rocket League, which I am simply listening to, and trying to trigger on commands. Will the plugin itself have to be altered? They do also have a ws-relay. Perhaps it can be altered to send what is required? https://gitlab.com/bakkesplugins/sos/sos-ws-relay I also tried using regex matching..to simply scan everything..but to no avail |
Currently only connections conforming to the obs-websocket protocol are supported. In the linked PR I drafted the option to specify that a given connection should ignore the obs-websocket protocol and instead reacts and send out plain-text messages. I think that should allow you to react on the Rocket League websocket events using a macro setup like you shared above. A build should be available here in a few minutes: Let me know if that works for you! :) |
I was just about to suggest that, to be able to just ignore obs-ws protocols altogether and just simply listen. Perfect! I'll try it very soon |
Wait wait wait so the log will not output anything, but it is indeed receiving! I used "ball_hit" with regex partial match and it is working. Wow perfect. Thank you. Not sure if it can be outputted to log, for troubleshooting reasons in the future? |
WS messages will still be logged if you enable verbose logging. The log messages you observed previously were error logs which will be printed regardless of the verbose logging setting. |
Ah, right. Forgot about that. Well, it all works well now. Superb stuff. I'll close this. Thanks |
Hi there. This might me being stupid and not doing things right. Oooor..it might be the plugin.
I love that WS has been added. I am trying to connect to this WS connection. In the console, it does say "received connection" in green. So..seems like it should work. However as you can see in the obs window, it's stuck on "Connecting".
I tried making a macro, and nothing happens.
Am I doing something wrong, or is there a bug or something?
The text was updated successfully, but these errors were encountered: