christopher-dg / go-obs-websocket Goto Github PK
View Code? Open in Web Editor NEWGo client for obs-websocket
License: MIT License
Go client for obs-websocket
License: MIT License
Stuff like this is really gross:
go-obs-websocket/requests_streaming.go
Lines 246 to 256 in 2efc360
Implementing something along these lines would be much nicer. Maybe it's also time to look at using go generate
, since the Python script is pretty unwieldy.
I handled OBS event Exiting
and then disconnects properly.
But if OBS is killed, after 1000 iteration, the Client.poll()
panics.
Furthermore, according to Gorilla websocket overview and Conn.NextReader()
documentation:
Applications must break out of the application's read loop when this method
returns a non-nil error value. Errors returned from this method are
permanent. Once this method returns a non-nil error, all subsequent calls to
this method return the same error.
I propose to fix this by checking if the returned error is *CloseError
then we Disconnect
the client.. If you are okay with the fix, I will send a pull request..
It would be nice to have updated bindings to support newly implemented API functionality. Could you also document how you generated the sources, because I can't quite figure out how codegen/protocol.py is meant to be called.
Thank you!
It looks like nested objects in JSON aren't correctly encoded or parsed:
position.x
or position.alignment
will always be 0 because that's not the correct JSON key. The key is alignment
inside the position
struct.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.