@socketio.on('leave', namespace='/jobs')
def on_leave_jobs():
 if ('room' in flask.session):
  room = flask.session['room']
  del flask.session['room']
  leave_room(room)

@ socketio . on ( 'leave' , namespace = '/jobs' ) def on_leave_jobs ( ) : if ( 'room' in flask . session ) : room = flask . session [ 'room' ] del flask . session [ 'room' ] leave_room ( room )
somebody left a room .