Lawouach / WebSocket-for-Python

WebSocket client and server library for Python 2 and 3 as well as PyPy (ws4py 0.5.1)
https://ws4py.readthedocs.org/en/latest/
BSD 3-Clause "New" or "Revised" License
1.12k stars 288 forks source link

Is it possible to extract headers from WebSocketProtocol using asyncio #169

Closed a904guy closed 9 years ago

a904guy commented 9 years ago

I've jumped down into the self.proto of the extended WebSocket class, but can't seem to find a way to get header information out from the yield considering it is just reading them and discarding them. Unless I'm overlooking something (It is late...)

I'd love to be able to get the Cookies out during the opened method if possible.

Lawouach commented 9 years ago

Heya,

Could you clarify which client you're using please? I can't recall a self.proto attribute.

Also, would it be possible to use the mailing-list instead for usage questions? :)

Thanks

a904guy commented 9 years ago

Absolutely, Didn't know there was one. I'll close the ticket out.