Skip to content

Commit

Permalink
Changed timeout parameter type in _wait_till_sock_connected method
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Dębski committed Jul 25, 2024
1 parent d356f71 commit 51d88d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion livechat/utils/ws_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def send(self, request: dict, opcode=ABNF.OPCODE_TEXT) -> dict:
logger.info(f'\nRESPONSE:\n{json.dumps(response, indent=4)}')
return RtmResponse(response)

def _wait_till_sock_connected(self, timeout: float = 10) -> NoReturn:
def _wait_till_sock_connected(self,
timeout: Union[float, int] = 10) -> NoReturn:
''' Polls until `self.sock` is connected.
Args:
timeout (float): timeout value in seconds, default 10. '''
Expand Down

0 comments on commit 51d88d5

Please sign in to comment.