MCPcopy Create free account
hub / github.com/miguelgrinberg/python-socketio / _get_real_value

Method _get_real_value

src/socketio/client.py:356–361  ·  view source on GitHub ↗

Return the actual value, for parameters that can also be given as callables.

(self, value)

Source from the content-addressed store, hash-verified

354 return self.eio.sleep(seconds)
355
356 def _get_real_value(self, value):
357 """Return the actual value, for parameters that can also be given as
358 callables."""
359 if not callable(value):
360 return value
361 return value()
362
363 def _send_packet(self, pkt):
364 """Send a Socket.IO packet to the server."""

Callers 2

connectMethod · 0.95
_handle_eio_connectMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected