You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parameters = simpleobsws.IdentificationParameters(ignoreNonFatalRequestChecks = False) # Create an IdentificationParameters object (optional for connecting)
ws = simpleobsws.WebSocketClient(url = 'ws://localhost:4444', password = 'test', identification_parameters = parameters) # Every possible argument has been passed, but none are required. See lib code for defaults.
async def make_request():
await ws.connect() # Make the connection to obs-websocket
await ws.wait_until_identified() # Wait for the identification handshake to complete
requests = []
requests.append(simpleobsws.Request('GetVersion')) # Build a Request object, then append it to the batch
requests.append(simpleobsws.Request('GetStats')) # Build another request object, and append it
ret = await ws.call_batch(requests, halt_on_failure = False) # Perform the request batch