@socketio.on('disconnect', namespace='/home')
def on_disconnect_home():
 pass

@ socketio . on ( 'disconnect' , namespace = '/home' ) def on_disconnect_home ( ) : pass
somebody disconnected from the homepage .