Skip to content

Using random IP gets WebSocket stuck while connecting #96

@G4PLS

Description

@G4PLS

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions