Skip to content

Commit

Permalink
Merge pull request Ape#60 from nunofgs/bugfix/fix-default-timeout-for…
Browse files Browse the repository at this point in the history
…-websocket-connections

Fix default timeout for websocket connections
Ape authored Nov 12, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 4902c07 + ad4f7f8 commit bd92138
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions samsungctl/remote_websocket.py
Original file line number Diff line number Diff line change
@@ -15,6 +15,9 @@ def __init__(self, config):
if not config["port"]:
config["port"] = 8001

if config["timeout"] == 0:
config["timeout"] = None

URL_FORMAT = "ws://{}:{}/api/v2/channels/samsung.remote.control?name={}"

"""Make a new connection."""

0 comments on commit bd92138

Please sign in to comment.