Skip to main content

All Questions

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:/...
Honza's user avatar
  • 1,018
1 vote
0 answers
42 views

SocketIO - connection not recognized (?) after a couple of messages exchanged

I'm running a JS socketio client and a Python socketio server. The workflow is roughly client emitting event1 to server -> server reacting to event1, running analysis and emitting event2 to client -...
kczan's user avatar
  • 472
0 votes
1 answer
188 views

JS socket.io client doesn't catch an emitted event

I'm using a Python based socketio server and JS socketio client. The workflow looks roughly like this: client emits <<action1>> -> server receives <<action1>> -> server ...
kczan's user avatar
  • 472
0 votes
1 answer
531 views

405 Method Not Allowed - The method is not allowed for the requested URL

I am going to get input from a message form (HTML) in js, but it shows The method is not allowed for the requested URL. Can anyone help me find where is the issue? Thanks! js code: var socket = io....
Jamie Liu's user avatar
1 vote
1 answer
2k views

How can I emit Flask-SocketIO requests with callbacks that still work after a user rejoins and their sid changes?

Summarize the Problem I am using Flask-SocketIO for a project and am basically trying to make it so that users can rejoin a room and "pick up where they left off." To be more specific: The ...
eshapiro42's user avatar
0 votes
2 answers
4k views

Python Socketio not connecting with JavaScript socket.io-client

I want to simply connect socket.io-client to python server, but for some reason it's keep failing. Initially I start my python server and then try to connect JavaScript as my client server after ...
smith-christian's user avatar
-1 votes
1 answer
152 views

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 { ...
user avatar
0 votes
1 answer
1k views

python socket-io emit() doesn't send time until after execution

Using the python socketio package, I created a timer that starts when a client connects to my server. Server-side code: import socketio sio = socketio.Server() app = socketio.WSGIApp(sio, ...
Harry's user avatar
  • 3
0 votes
0 answers
1k views

socket.io works on localhost AND local network but not when deployed on a server

I am building a socket.io app with the python implementation on the server side and the JS client. When I test my app on my machine everything works, I can connect with multiple clients and exchange ...
NIoSaT's user avatar
  • 433
0 votes
1 answer
2k views

Python-socketio Server.call() method does not seem to work with JavaScript client

Summarize the problem I am using the python-socketio package as a server for a web-based game that I am creating. I initially implemented the client in Python (with python-socketio[client]) for ...
eshapiro42's user avatar
6 votes
1 answer
17k views

How to emit message from python server to javascript client in python-socketio?

The socketio client successfully connects to the server and sends messages with emit to the server but the other direction server to the client fails. I cannot find the source of error. It is Here ...
Mehdi's user avatar
  • 4,338