WebSocket-for-Python
WebSocket-for-Python copied to clipboard
Location information is not stored in server-side websocket
It would be useful to preserve information about URL that was requested by client. In cherrypyserver.py ws_location local variable is being created but it is not stored anywhere.
Could I add location method to WebSocket and appropriate constructor argument with None as default value to have means of accessing it?
Hello shaxbee,
Since you're using CherryPy, do you need the ws_location from the WebSocket class or in the CherryPy page handler itself?
Hello Sylvain,
I'll need it WebSocket class - maybe it could be an optional argument to opened() method to avoid cluttering class with too many data members?
Regards, Zibi
On 28 August 2014 03:53, Sylvain Hellegouarch [email protected] wrote:
Hello shaxbee,
Since you're using CherryPy, do you need the ws_location from the WebSocket class or in the CherryPy page handler itself?
— Reply to this email directly or view it on GitHub https://github.com/Lawouach/WebSocket-for-Python/issues/141#issuecomment-53630541 .
Best Regards, Zbyszek "ShaXbee" Mandziejewicz mobile: +65 92472491