Flask - WebSocket and Real-Time
In Flask-SocketIO, which method is used to listen for a custom WebSocket event named 'join'?
@socketio.on(event_name) to listen for events from clients.@socketio.on('join'). Other options are incorrect because @app.route is for HTTP routes, @socketio.emit sends events, and @socketio.handle is not a valid decorator.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions