obsproject / obs-websocket

Remote-control of OBS Studio through WebSocket
GNU General Public License v2.0
3.79k stars 701 forks source link

Feature Request: allow un/subscribing to events post-connection #1204

Closed Yagich closed 1 month ago

Yagich commented 4 months ago

Feature Request Type

RPC Request

Feature Request Type (Other)

No response

Requested Feature

Currently, the only way to subscribe/unsubscribe to events is possible at initialization. It would be nice to have a way to un/subscribe to events at any point during a connection.

Requested Feature Usage Scenario

I'm working on an app that allows users to interface with OBS via obs-websocket with a node graph interface. I want to provide the full feature set of obs-websocket through nodes, while also starting off with "sane" defaults so that the the high-volume events are still available, but after some configuration.

david672orford commented 4 months ago

I haven't tried it, but according to the documentation there is a Reidentify message (opcode 3) your client can send to change its event subscriptions.

tt2468 commented 1 month ago

@david672orford is correct, you can already achieve this event subscription modification behavior via Reidentify.