socketio无法从python获取数据到角前端,它将错误显示为"Cross-Origin Request Blocked: The Same Origin Policy disallows readingthe remote resource at http://my ip:3000/socket.io/?
我正在使用socketio运行Flask应用程序来处理通知。Flask应用程序在端口5000监听,客户端在8080。js客户端总是收到这样的错误: VM15520:1 GET http://localhost:5000/socket.io/?EIO=3&transport=polling&t=Mb2_LpO 400 (Bad Request)
Access to XMLHttpRequest at 'http://localhost:5000respons
我开始使用python-socketio连接socketIO nodejs服务器而不是javascript,我遇到了套接字id的问题: class LoginSocket(socketio.ClientNamespacexxxxxxxxxxxxxxxxxxxxxx')
print('disconnected from server')
sio.re