Skip to content
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.

Commit

Permalink
call_retries
Browse files Browse the repository at this point in the history
  • Loading branch information
Katistic committed Oct 10, 2020
1 parent 1038934 commit e80b07f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions examples/async/Misc.py
Original file line number Diff line number Diff line change
@@ -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
20 changes: 20 additions & 0 deletions examples/sync/Misc.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e80b07f

Please sign in to comment.