# Establish multiple streams streams = [] for i in range(5): stream = sio.connect("http://localhost:5000/stream/{}".format(i)) streams.append(stream)