From e80b07f63c932d208f35a704105f3ca7f13fdc4a Mon Sep 17 00:00:00 2001 From: Katistix <33645731+Katistic@users.noreply.github.com> Date: Sat, 10 Oct 2020 14:36:50 +1100 Subject: [PATCH] call_retries --- examples/async/Misc.py | 20 ++++++++++++++++++++ examples/sync/Misc.py | 20 ++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 examples/async/Misc.py create mode 100644 examples/sync/Misc.py diff --git a/examples/async/Misc.py b/examples/async/Misc.py new file mode 100644 index 0000000..e1a6d44 --- /dev/null +++ b/examples/async/Misc.py @@ -0,0 +1,20 @@ +''' +Each time this file is split with this: + +## ----- Example: X ----- ## + +It will be treated as a new file/example +''' + +## ----- Example: Change call Retry Count ----- ## + +''' +Built in is retry logic for when VRChat disconnects a call with no response +Default retries is 1 (so 1 call, then 1 retry if it fails) + +To change retry count, use the method below. +''' + +from vrcpy.request import ACall + +ACall.call_retries = 5 diff --git a/examples/sync/Misc.py b/examples/sync/Misc.py new file mode 100644 index 0000000..f86ad36 --- /dev/null +++ b/examples/sync/Misc.py @@ -0,0 +1,20 @@ +''' +Each time this file is split with this: + +## ----- Example: X ----- ## + +It will be treated as a new file/example +''' + +## ----- Example: Change call Retry Count ----- ## + +''' +Built in is retry logic for when VRChat disconnects a call with no response +Default retries is 1 (so 1 call, then 1 retry if it fails) + +To change retry count, use the method below. +''' + +from vrcpy.request import Call + +Call.call_retries = 5