Skip to content
#

long-polling

Here are 49 public repositories matching this topic...

simingy
simingy commented Apr 14, 2020

Problem

  1. sio.connect() first connects to namespace / before connecting to other namespaces. Subsequent emit() commands are allowed before all namespaces are connected to - causing messages to disappear (due to namespace not connected yet).
    Adding asyncio.sleep(1) before the first emit() seems to fix the problem,

  2. in the documentation https://python-socketio.readthedocs.io/en

Improve this page

Add a description, image, and links to the long-polling topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the long-polling topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.