simple-websocket icon indicating copy to clipboard operation
simple-websocket copied to clipboard

Get client's `header` in `Server` class?

Open mirusu400 opened this issue 1 year ago • 1 comments

Hello.

Related with flask-sock library, I'm trying to get client's headers (Like cookies, Sec-Websocket-Key, ...) from Server class.

But it seems there are no ways to get client's information, such as cookies, headers, etc..

Is there any way to get client's information?

mirusu400 avatar May 10 '24 19:05 mirusu400

With Flask-Sock you have a Flask view function, you can use Flask's request to access headers, cookies, etc.

miguelgrinberg avatar May 10 '24 21:05 miguelgrinberg