obs-websocket-community-projects / obs-websocket-js

Consumes https://github.com/obsproject/obs-websocket
MIT License
657 stars 95 forks source link

`CustomEvent` not in event types #307

Open mattrossman opened 1 year ago

mattrossman commented 1 year ago

Description:

I'm getting a type error when listening for CustomEvent events broadcast via BroadcastCustomEvent

obs.on("CustomEvent", (data) => {
  console.log("CustomEvent:", data)
})
image

I saw in the discussion in #300 that this should be either fixed upstream in https://github.com/obsproject/obs-websocket/blob/master/docs/generated/protocol.json or in the build script https://github.com/obs-websocket-community-projects/obs-websocket-js/blob/master/scripts/build-types.ts

Versions Used (if applicable):

mattrossman commented 1 year ago

Upstream issue https://github.com/obsproject/obs-websocket/issues/1031