christopher-dG / go-obs-websocket

Go client for obs-websocket
MIT License
85 stars 26 forks source link

Allow to create custom Request & Response #6

Closed afriza closed 4 years ago

afriza commented 4 years ago

There are requests that have optional parameters. For example, I want to have GetSourceSettingsRequest without SourceType being set; since having it set with empty string "" has different meaning.

One way I can do this kind of variation of requests is to create custom requests and responses of my own. And the only blocking point when creating custom request & response is that Client.sendRequest() and getMessageID() are private.