@socketio.on('join', namespace='/jobs')
def on_join_jobs(data):
 room = data['room']
 join_room(room)
 flask.session['room'] = room

@ socketio . on ( 'join' , namespace = '/jobs' ) def on_join_jobs ( data ) : room = data [ 'room' ] join_room ( room ) flask . session [ 'room' ] = room
somebody joined a room .