All Questions
150 questions
0
votes
0
answers
29
views
How can my Flask application push Websocket Messages to an asynchronous HTML page?
I'm having a few issues with a Flask application using socketIO.
I have an external device on IP 10.0.0.144 sending websocket messages to my application on 10.0.0.218:8089. I can see the incoming ...
0
votes
0
answers
26
views
Link device's gyroscopic orientation with that of 3d model on web
I am trying to build a model rocket that uses an old phone for reading gyroscopic data using a webapp (Flask and flask-socketIO). the "rocket phone" goes to /rocket and sends gyroscope data ...
1
vote
0
answers
46
views
Flask-SocketIO - Method Not Allowed
I have a program that generates notes based on a topic, using OpenAI's API. I am using Flask-SocketIO to make it happen in real time on the website. I send the request to the API by clicking a button ...
0
votes
1
answer
60
views
Flask-SocketIO: Python code can send, but cannot receive. JavaScript code can receive, but cannot send
I am working on a multiplayer web game that uses Flask-SocketIO for real-time communication between the server and clients. However, I am facing an issue where the Python code can successfully send ...
0
votes
0
answers
70
views
Queueing system using Python Flask
So I've been trying to make a queueing system for an omegle clone.
Here, there is an empty "queue" dict. Whenever there is post request, i.e someone clicked on the CHAT button, one of 2 ...
1
vote
0
answers
105
views
WebSocket connection to 'ws://127.0.0.1:5000/socket.io/?EIO=4&transport=websocket&sid=wBX-4EpWW6-y-DfFAAAC' failed:
Im trying to send a "refresh message" from a Flask python app to the html.
I did this:
def alert(previous_date, date, archivo):
with app.app_context():
if previous_date!= date:
...
0
votes
0
answers
17
views
In javascript socket.emit is working but socket.on is not working
I am working on a project, and here is the code
this is the code snippet
var socket = io.connect('http://127.0.0.1:5000'); // Connect to port 5000
socket.on('new_image_content', ...
0
votes
0
answers
31
views
How to make a socketio event return value from a second client
I want to return value received in callback.
client1 emits some_event to server. Server emits some_event to client2 and expects callback (aka ack). Client2 receives some_event and returns it's ...
0
votes
0
answers
32
views
Socket.io connection detected on Python server but not triggering events in JavaScript client
I'm currently working on a project where I'm trying to establish a connection between a Flask-SocketIO server in Python and an HTML page using JavaScript. On the Python side, I can see that the ...
1
vote
1
answer
36
views
incoming msgs/msgs sent by user are not being rendered after changing rooms
Let me start by saying that I only have a month of react-js experience -
My reactjs is connected to to a flask socketio backend app. I have tested it multiple times and the issue does not arrive from ...
1
vote
0
answers
29
views
send python result to node.js client
I have a python script returning a string which I want to display on my web site
Here is the working python script
import requests
import json
url = "http://localhost:3000"
data = {'msg': '...
0
votes
0
answers
278
views
socket.io keeps opening connections in reactjs application
I am trying to connect to socket.io connection in my reactjs app.I have a event from which i will recive some data. but my network tab is spammed with lot of connections. my code works fine when i run ...
1
vote
0
answers
168
views
Socket.io cross origin is not working while same origin is
I know there are quite a lot of questions on this and I've read many of them. But still not working and it looks like it should, because there is no visible issue. I have working application on https:/...
2
votes
1
answer
280
views
How can I redirect to another route when using socketio
I am trying to redirect the page to a different route, whenevery i get a message from the client. It is basically going to get different messages from different clients, and when it reaches specific ...
0
votes
1
answer
174
views
WebSocket connection to 'ws://(server ip)/socket.io/?EIO=4&transport=websocket&sid=52ViP_GqPGSr4DkqAAAN' failed:
I have been trying to figure out this error for a few days. When I try to emit a socket from the client side (JS) to the server (Python - flask) I get the error of connection failed. However, this ...