Overview

Flask-SocketIO 5.3, released on October 1, 2023, adds Flask 3.0 compatibility and improves namespace handling.

Main Features

This release ensures compatibility with Flask 3.0 and its new type hints system, while maintaining backward compatibility with Flask 2.x.

python
from flask import Flask
from flask_socketio import SocketIO, emit

app = Flask(__name__)
socketio = SocketIO(app)

@socketio.on('message')
def handle_message(data):
    emit('response', {'text': data})

Sources