title: How do I get the session ID of the connecting client in a socket.io python server?
body: <p>I have something like this:</p>
  
  <pre><code>from flask import Flask, jsonify, request, render_template, Response
  from flask_socketio import SocketIO, emit
  app = Flask(__name__)
  socketio = SocketIO(app)
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>@socketio.on('connect', namespace='/rv')
  def connect():
  # want to get session id or some client identifier
  </code></pre>
  
  <p>because I want to send back to a specific client with emit and/or send?</p>
  
  <p>Can someone show me how to get the right session/client identifier and then how to use it to send/emit a message back?</p>