Skip to content

v0.8.0 for obs-websocket v4.9.1

Compare
Choose a tag to compare
@andreykaipov andreykaipov released this 29 Dec 03:32

What's Changed

  • Add configurable underlying dialer and request header options. (#25)

    • New client options: WithDialer(x *websocket.Dialer) and WithRequestHeader(x http.Header).
  • Improve error handling and general client enhancements. (#24)

    • The client errors out if it doesn't receive a response from the server after a certain timeout; configurable via the new WithResponseTimeout(x time.Duration) option. (8d28d35)
    • Don't panic on unrecognized messages in the OBS eventing loop, e.g. when used against a server version like v5. (8ac3b76)
    • Broadcast events from OBS are now maintained in order, i.e. the oldest events are now purged if they haven't yet already been consumed, to make room for the latest. (87fc692)
    • Gracefully handle the rare case of an eventing issue happening before authentication occurs, e.g. our event loop failed parsing a raw message from the server for whatever reason. (f5a9289)
  • Remove the vendor directory because this isn't big enterprise. (#26)

  • Use three-valued boolean values (*bools) in request bodies. (#29 #30)

    • Otherwise, there's no way to tell the difference between a false value and an unset value for things. See #27 for issue context.

Full Changelog: v0.7.0...v0.8.0