Questions tagged [python-socketio]

Python implementation of the Socket.IO realtime client and server.

205 questions
0
votes
1 answer

How can I access my socket id from client with python-socketio?

I start using python-socketio connect socketIO nodejs server instead of javascript, I face problem with socket id: class LoginSocket(socketio.ClientNamespace): def on_connect(self): print('connected to server') # I need get…
Anph
  • 163
  • 1
  • 14
0
votes
1 answer

django project derived from python-socketio django example unable to server other URLs (at least in django 1.11)

After playing with python-socketios django_example, and seeing that it worked great, I created a new django project, configured it just like the example, copied over the example app to the project (complete with it's overriding of the runserver…
ckot
  • 819
  • 2
  • 10
  • 23
0
votes
1 answer

python-socketio not always emitting when tracking downloading of a file on a flask server

I'm using a flask server for RESTful web services and python-socketio to achieve bi-directional communication between the server and the client to keep track of download progress on the backend. I take variable sio declared in the server.py file and…
0
votes
1 answer

Can't use nginx as websocket proxy

Here is my nginx config server { listen 80; server_name _; location / { proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; …
Vassily
  • 5,263
  • 4
  • 33
  • 63
-1
votes
1 answer

Convert socket.io Javascript code to python-socketio

I have a javascript using socket.io. I would like to convert this javascript file to python: io.on('connection',(socket)=>{ let nsData = namespaces.map((ns)=>{ return { img: ns.image, endpoint: ns.endpoint …
user16987274
-1
votes
1 answer

Python WebSockets using socketio and eventlet - cannot kill eventlet server

Im adding a websocket server to my app so it can communicate with a web-based version of itself. For this I am using eventlet. The problem i am running in to is once I start the server, I cannot get it to die. Even if i close my application, the…
aescript
  • 1,775
  • 4
  • 20
  • 30
-1
votes
1 answer

why do I see TypeError for python socket module?

I am learning python, and these days I am trying to work with socket module. Below is the client side logic. import socket from threading import Thread import ipaddress lic_server_host = input("Please enter the hostname: ") port = input("Please…
user3521180
  • 1,044
  • 2
  • 20
  • 45
-1
votes
1 answer

socketIO-client-nexus 0.7.6 - StopIteration error

from socketIO_client_nexus import SocketIO, LoggingNamespace from requests.exceptions import ConnectionError try: socket = SocketIO('https://myURL/myendpoint', verify=False, wait_for_connection=False) socket.wait() except ConnectionError: …
LEE
  • 3,335
  • 8
  • 40
  • 70
-1
votes
1 answer

How to make SocketIO/aiohttp print to screen every X seconds

A SocketIO server created using aiohttp appends a new string to a global dict zoo on receiving a addAnimal message from its socketio clients. Is it possible to also print out the dict zoo every 5 seconds? My current code below does not seem to print…
Nyxynyx
  • 61,411
  • 155
  • 482
  • 830
1 2 3
13
14