All Questions
11
questions
0
votes
1
answer
379
views
How to deploy React/Flask with websockets?
i have a Chatting project that consists of React/Flask(Python) and I do websockets to communicate between them, how can i deploy both parts and do connect them together ?
I'm trying to deploy both of ...
0
votes
2
answers
568
views
Using socket.io with React and python: I can't get the decorator to trigger
I'm using socket.io with python 3.10 (I'm using flask but not tied to it) and React for the front end. I seem to be connected okay, and the python server is aware of the pings coming in, but the ...
0
votes
1
answer
102
views
Trying to create a message feature with socket.io but it doesn't work on Heroku, only on localhost
In my component:
useEffect(() => {
dispatch(getSocket())
}, [])
useEffect(() => {
if (socket) {
socket.emit("joinroom", { ticketId })
}
}, [socket]);
useEffect(() ...
0
votes
0
answers
698
views
flask socketio send different messages to different clients at the same time
I have a flask-socketio server and several react socket.io-client namespaces connected to it.
Clients are in the same ip and port but in different namespaces like /finalResponse, /algoSignal etc.
...
0
votes
1
answer
524
views
socket io receive message only at the end
I want to stream a video from a flask server to a webpage. For testing purpose I only send text strings. The problem is that the client only receives the packages at the end. I have to wait 30 seconds ...
4
votes
1
answer
3k
views
React and Flask with Socket.IO - CORS problem
I'm trying to make a Flask server (port 5000) that has a socket.io connection with a React client (port 3000). When I try to execute the server script (shown below), I get an error that says "...
1
vote
1
answer
396
views
React app not refreshing the log streamed through socket.io
In my project I am using flask_socketio as the server and socket.io-client with react as the client. My main.py(flask server) is constantly reading a log file(console.log) that is continuously ...
3
votes
0
answers
766
views
How can I send react-webcam video stream to a flask api for deconvultion?
Basically I want to take a live stream and display the deconv-ed view of the
I already have the deconv models btw and it is working with a local webcam stream with opencv (all within python)
Im just ...
1
vote
1
answer
1k
views
React socket.io-client with Python flask_socketio not handling events
I am implementing websockets on my app. The connection occurs but the echo event never triggers and I can't see why. The server serves my index.html successfully and the "Connected" line does log on ...
2
votes
1
answer
2k
views
react + socket.io emits not going through - basic error
There must be a simple mistake in my understanding of reactjs or socket.io. I have a server that sends "speed" values iterating from 2 to 5, and a client that receives them and displays them.
The ...
3
votes
2
answers
9k
views
React with Socket.io - continously re-render on "socket.on" event
I'm trying to write a client that opens a socket.io connection with a server and then continuously re-renders the screen with an updated number that is sent from the server through the socket. I can't ...