Skip to content

CustomEvent not in event types #307

Description

@mattrossman

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions