Consumes https://github.com/obsproject/obs-websocket
Full Changelog: https://github.com/obs-websocket-community-projects/obs-websocket-js/compare/v5.0.4...v5.0.5
debug
export, which you've probably haven't used anywayFull Changelog: https://github.com/obs-websocket-community-projects/obs-websocket-js/compare/v5.0.3...v5.0.4
Full Changelog: https://github.com/obs-websocket-community-projects/obs-websocket-js/compare/v5.0.2...v5.0.3
callBatch
by @faultyserver in https://github.com/obs-websocket-community-projects/obs-websocket-js/pull/306
Full Changelog: https://github.com/obs-websocket-community-projects/obs-websocket-js/compare/v5.0.1...v5.0.2
(No changes in typings in obs-websocket 5.0.1)
Full Changelog: https://github.com/obs-websocket-community-projects/obs-websocket-js/compare/v5.0.0...v5.0.1
v5 is made for obs-websocket versions 5.x that uses a completely new protocol and isn't backwards compatible with 4.x. If you're planning to build something for 4.x, consider upgrading (as all releases for future obs versions will be based on v5) or use the latest/last v4 version.
async connect(args = {})
has been changed to async connect(address = 'ws://localhost:4444', password?: string, options?: IdentifyMessageFields)
send(type, data)
has been replaced with call(type, data)
, aligning with simpleobsws
send
calls anyway to match the new request namessendCallback
has been removed, use the promise chain if you want to keep callback syntax (.send(...).then((res) => { ... }, (error) => { ... })
)import ... from 'obs-websocket-js/json'
)For changes between 4.x and 5.x see release notes for v5.0.0-alpha.0