Flask-SocketIO-Chat icon indicating copy to clipboard operation
Flask-SocketIO-Chat copied to clipboard

Example code with Auth key at the time of connect

Open rmControls opened this issue 2 years ago • 1 comments

Thank you for sharing the great example of Flask-SocketIO....

I am trying to get authentication token at the time of connect, can you update your sample code with passing Authkey at the time of connect??

rmControls avatar Jun 19 '22 23:06 rmControls

This example does not require authentication. You can look at the documentation for the Socket.IO JS client, and the Python server to see how to pass authentication.

Client docs: https://socket.io/docs/v4/client-api/#iourl Server docs: https://python-socketio.readthedocs.io/en/latest/server.html#connect-and-disconnect-event-handlers

miguelgrinberg avatar Jun 19 '22 23:06 miguelgrinberg