Elektordi / obs-websocket-py

Python library to communicate with an obs-websocket server (for OBS Studio)
MIT License
235 stars 59 forks source link

Using random IP gets WebSocket stuck while connecting #96

Open G4PLS opened 3 months ago

G4PLS commented 3 months ago

I have these simple lines:

import obswebsocket

socket = obswebsocket.obsws(host="192.52.4.2", timeout=1)
socket.connect()

The IP is a valid Id but doesnt lead to anything so the socket cant connect to it. But it just gets stuck when calling socket.connect(), providing the timeout=1 doesnt do anything either. Adding a try ... catch also doesnt work because it never resolves the socket.connect()