humayunsr
b6ee33e56c
Prevent multiple tasks for reconnection ( #1369 )
* Prevent multiple taks for reconnection
As discussed here.
https://github.com/miguelgrinberg/python-socketio/discussions/1367
In certain scenarios, this library creates multiple reconnection tasks.
A check is added to make sure that reconnection task starts only when
this task is not running.
Signed-off-by: Humayun Ajmal <[email protected] >
* async client
---------
Signed-off-by: Humayun Ajmal <[email protected] >
Co-authored-by: Miguel Grinberg <[email protected] >
4 months ago
Arseny
78d1124c50
fix AsyncClient::wait unexpected return after success reconnect ( #1407 )
* fix AsyncClient::wait unexpected return after success reconnect
AsyncClient::wait use sleep(1) call to wait to start reconnect task.
Sometimes reconnect is faster then 1 second, and wait returns while connection to server is established.
Added one check to avoid this situation
* Making added check easier to understand in source code
* fix Client::wait unexpected return after success reconnect
* fixes
---------
Co-authored-by: Miguel Grinberg <[email protected] >
4 months ago
Miguel Grinberg
db642bb2bd
Upgrade the code to more recent Python versions
4 months ago
Peter Bierma
72d37ea79f
Fix typo with `AsyncClient.connect` example ( #1403 )
5 months ago
Miguel Grinberg
5e78ecbc34
Minor updates to the server and client documentation
10 months ago
Miguel Grinberg
469b7c0dd5
Ignore catch-all namespace in client connections ( Fixes #1351 )
10 months ago
Miguel Grinberg
811e044a46
New shutdown() method added to the client ( Fixes #1333 )
11 months ago
Miguel Grinberg
b4f36148d8
Optional connection retries ( Fixes #1306 )
1 year ago
mooomooo
801241378e
Support catch-all namespaces ( Fixes #1288 )
1 year ago
Miguel Grinberg
ef0f88f6cf
Internal code restructure (no functional changes)
2 years ago
Miguel Grinberg
55d6310eb3
Simplified client ( #1237 )
2 years ago
Sasja
598dd7e258
fix docstring typo: client/server mixup ( #1163 )
* fix docstring typo: client/server mixup
* fix docstring typo: client/server mixup
2 years ago
Miguel Grinberg
8c747ab67b
Fix documentation typos
2 years ago
Miguel Grinberg
5b91346177
Documentation fix for async client.
3 years ago
Miguel Grinberg
1fb7a76575
Connect with an empty auth object instead of None ( Fixes #861 )
3 years ago
Miguel Grinberg
34f34e53d6
Do not invoke reserved events on a catch-all handler ( Fixes #814 )
3 years ago
Miguel Grinberg
8c2a6ac869
Improved documentation of call() method ( Fixes #813 )
3 years ago
Miguel Grinberg
ea84b9b1c7
Option to disable the SIGINT handler in the client ( Fixes #792 )
3 years ago
Miguel Grinberg
4f5bf1e989
Improve documentation on start_background_task() function
4 years ago
Miguel Grinberg
28569d48ad
Catch-all event handlers
4 years ago
Miguel Grinberg
5159e84c49
Support msgpack and custom packet serializers ( Fixes #749 )
4 years ago
Miguel Grinberg
98c7ac23f2
Improved project structure
4 years ago
Miguel Grinberg
7d2e7f7eb3
Allow functions to be used for URL, headers and auth data in client connection ( Fixes #588 )
4 years ago
Miguel Grinberg
17d50fabb5
More instrumentation for #572 #nolog
4 years ago
Miguel Grinberg
a07eedf54e
Pass custom authentication data with client connection ( Fixes #661 )
4 years ago
Miguel Grinberg
4da6d74f56
Added wait argument to client's connect method ( Fixes #634 )
4 years ago
Miguel Grinberg
bff76c432c
Fixed bad event object used by asyncio client reconnect logic ( Fixes #622 )
4 years ago
Miguel Grinberg
3349b024d5
Invoke the disconnect handler when the client initiates a disconnection ( Fixes #594 )
4 years ago
Miguel Grinberg
251fee1763
Updated documentation options ( Fixes #597 )
4 years ago
Miguel Grinberg
f6eeedb767
Remove dependency on the six package
4 years ago
Miguel Grinberg
0c91e92eb1
v5 protocol: client unit tests
4 years ago
Miguel Grinberg
308b0c8eeb
v5 protocol: handle per-namespace sids in base manager
4 years ago
Miguel Grinberg
49822e6919
v5 protocol: do not connect the default namespace unless requested explicitly
4 years ago
Miguel Grinberg
4940fc1e1e
v5 protocol: rename ERROR packet to CONNECT_ERROR
4 years ago
Miguel Grinberg
9270a5bcf8
remove unnecessary binary argument
4 years ago
Miguel Grinberg
3ac3437af7
Document the user of tuples when emitting
5 years ago
Miguel Grinberg
8d08096dc4
Improved handling of rejected connections ( #391 #487 #447 )
5 years ago
Miguel Grinberg
d972ca3a54
Document concurrency problems with emits ( Fixes #403 )
5 years ago
Miguel Grinberg
d745477abf
More accurate logging documentation
5 years ago
Dmitry Volodin
aa2882cb3e
fix AsyncClient example and typo in Intro ( #389 )
* fix AsyncClient example
* fix miguelgrinberg/python-socketio#353
5 years ago
Miguel Grinberg
805d5f3741
Support the connect_error event in the client ( Fixes #344 )
5 years ago
Miguel Grinberg
7c32b379ae
Updated documentation with new Engine.IO client options
6 years ago
Miguel Grinberg
f2c1cf7f04
Do not allow emits on a namespace that is not connected ( Fixes #325 )
6 years ago
Miguel Grinberg
516a2958f4
Disconnect Engine.IO connection when server disconnects a client ( https://github.com/miguelgrinberg/Flask-SocketIO/issues/1017 )
6 years ago
Miguel Grinberg
fa53e3869c
handle keyboard interrupt during reconnect ( Fixes #301 )
6 years ago
Miguel Grinberg
3b32dbde8d
expose the sid for the connection
6 years ago
Miguel Grinberg
18fa5286c7
flake8 fixes
6 years ago
Miguel Grinberg
fd91e36799
remove unused wait and timeout arguments from send method
6 years ago
quentin
c4e4b0b226
Add namespaces parameter to the self.connect call in the reconnection process
6 years ago
Miguel Grinberg
f752312884
Avoid double calls to client disconnect handlers
Fixes #261
6 years ago