Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CustomEvent not in event types #307

Open
mattrossman opened this issue Oct 3, 2022 · 1 comment
Open

CustomEvent not in event types #307

mattrossman opened this issue Oct 3, 2022 · 1 comment

Comments

@mattrossman
Copy link

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):

  • obs-websocket-js version: 5.0.2
@mattrossman
Copy link
Author

Upstream issue obsproject/obs-websocket#1031

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant