Questions tagged [python-socketio]

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

205 questions
0
votes
0 answers

python-socketio websocket emit to particular client in Socket.IO an ionic application

In my project I am using a Django application that acts as a SocketIO server to the Ionic mobile application which uses Socket.io to connect to the server as a client. My django application has another socket connection and it acts as a client to…
0
votes
1 answer

Python socket.io client unable to emit event to server(node.js) after hosting on Heroku

I have tested the code on localhost and it works. However, when i push it to heroku, the code does not emit event. I am using this library for python client side: https://python-socketio.readthedocs.io/en/latest/client.html#installation This is my…
Jin Tan
  • 518
  • 6
  • 19
0
votes
0 answers

Testing Python-socketio Emit

I'm looking to unit test Python SocketIO's emit function's output (verify the output messages) to resolve the below issue and avoid needing to re-run a frontend process each time. Is this possible? I have a Python SocketIO application that passes…
Ryan Cocuzzo
  • 3,109
  • 7
  • 35
  • 64
0
votes
1 answer

Why python pickle does not work dos to unix?

Few days ago I coded a mini game to learn socket and threading. When I run my game server and client on windows it just works perfectly but when I moved my server file to my test server it gives me this pickle error: Exception in thread…
wiseking
  • 11
  • 3
0
votes
0 answers

Python Socket.io event handling

I'm a complete beginner when it comes to socket, so please bear with me if the question seems too trivial for you. The following is a code that i found on GitLab and I'm trying to understand import os import logging import uuid import socketio from…
0
votes
1 answer

Python socket server not working when deployed

I'm trying to build a chatbot, but I'm having some issues deploying my server The program works locally, but when I try to deploy the server in Heroku, I keep receiving, "net::ERR_CONNECTION_TIMED_OUT". I tried everything but I can't find the…
Banha Dix
  • 113
  • 1
  • 10
0
votes
0 answers

Python interpreter won't exit

i always use Stackoverflow to find solutions to my code questions, however this one i can figure it out, and i don't find any solution. I am trying to run the following code: import sys import fxcmpy con =…
0
votes
1 answer

flask-SocketIO sessionId in URL not secure

I want to use flask-Socketio. But the problem is that the sessionId (sid) is transmitted in the URL. Which means that anybody sniffing can steal the sessionId. How can flask send the sessionId backin a Post? Thanks in advance for any help!
0
votes
1 answer

Flask SocketIO duplicating saved messages

I am building a chat app based on Flask SocketIO only, no database. One of the requirements is when a new user connects, the app should show previous messages. I save every message into a array on each send event. Okay, so now the problem is, when…
0
votes
1 answer

how we can define an instance which make new connection in socket.io?

we use var abc = new WebSocket(url) to connect make new connection in websocket so in socket.io what we used to connect it or how can i do it please answer.
0
votes
0 answers

Sending periodically data to client with Flask-SocketIO

I'm trying to do little multiplayer game with Flask-SocketIO on server side and javascript client. I have player coordinates (x, y) in player class instance on server, but I can't emit that data periodically without earlier emit from client to…
Szafran
  • 51
  • 6
0
votes
0 answers

Issues sending specific message to client in Flask-SocketIO rooms

I am having difficulty trying to send a message to a specific client in Flask-SocketIO. I have taken out the database logic and a few other bits of code for the sake of simplicity as I believe they are irrelevant to the problem I'm currently…
0
votes
0 answers

Socket IO connection closed Automatically

I am working on a bot where we used python socket IO, am working on python automation testing where my script send messages to bot to verify bot responses are fine or not after tuning my bot always, After some time am getting following…
Rajeev Uppala
  • 205
  • 1
  • 3
  • 13
0
votes
2 answers

Running gpiozero listener continuously with uvicorn

I am trying to write a python app that will run on raspberry pi, that will have both socket connection (socketio with uvicorn) and physical input listeners. I intend to listen for socket connection and gpio events concurrently, without blocking each…
0
votes
0 answers

The requested address is not valid in its context error (Socketio Python Aiohttp)

I’m having trouble implementing SSL to my aiohttp TCPSite connection. I have a VPS set up with Ubuntu and Apache. My config files are set to enable CORS and SSL is active on the server. When I go to the actual resource ie…
MjBVala
  • 137
  • 3
  • 9