MCPcopy Index your code
hub / github.com/websocket-client/websocket-client / gettimeout

Method gettimeout

websocket/_core.py:150–159  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 5

closeMethod · 0.45
_recvFunction · 0.45
recvFunction · 0.45
_sendFunction · 0.45
sendFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected