Get the websocket timeout (in seconds) as an int or float Returns ---------- timeout: int or float returns timeout value (in seconds). This value could be either float/integer.
(self)
| 148 | self.get_mask_key = func |
| 149 | |
| 150 | def gettimeout(self) -> Optional[Union[float, int]]: |
| 151 | """ |
| 152 | Get the websocket timeout (in seconds) as an int or float |
| 153 | |
| 154 | Returns |
| 155 | ---------- |
| 156 | timeout: int or float |
| 157 | returns timeout value (in seconds). This value could be either float/integer. |
| 158 | """ |
| 159 | return self.sock_opt.timeout |
| 160 | |
| 161 | def settimeout(self, timeout: Optional[Union[float, int]]): |
| 162 | """ |