Browse Source

SimpleClient: type mismatch for SimpleClient.transport()

pull/1499/head
James Thistlewood 9 months ago
parent
commit
07813e3249
  1. 2
      src/socketio/simple_client.py

2
src/socketio/simple_client.py

@ -103,7 +103,7 @@ class SimpleClient:
The transport is returned as a string and can be one of ``polling`` The transport is returned as a string and can be one of ``polling``
and ``websocket``. and ``websocket``.
""" """
return self.client.transport if self.client else '' return self.client.transport if self.client else lambda: ''
def emit(self, event, data=None): def emit(self, event, data=None):
"""Emit an event to the server. """Emit an event to the server.

Loading…
Cancel
Save