SocketIO SID #1741
Unanswered
SSC-Sheffield
asked this question in
Q&A
SocketIO SID
#1741
Replies: 1 comment
-
The connect handler does not take the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When using the demo examples of creating a flask app server with socketio I cannot seen to get an SID assigned.
app = Flask(__name__)
socketio = SocketIO(app, async_mode="gevent")
@socketio.event def connect(sid): print(sid, 'connected')
returns None Connected in the server terminal window.
The JS client has
const socket = io('http://localhost:5000');
socket.on('connect', () => { console.log('connected'); })
which gets passed successfully to the console.
I'm trying to read temperature readings from an ADC connected to a raspberry pi. There is some feedback from the client - ie what type of temperature sensor we want to read. The server then needs to find the correct data and return to the client.
It's worked intermittently.
Any help would be much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions