WebSocket-for-Python icon indicating copy to clipboard operation
WebSocket-for-Python copied to clipboard

Location information is not stored in server-side websocket

Open shaxbee opened this issue 10 years ago • 2 comments

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?

shaxbee avatar Aug 26 '14 14:08 shaxbee

Hello shaxbee,

Since you're using CherryPy, do you need the ws_location from the WebSocket class or in the CherryPy page handler itself?

Lawouach avatar Aug 27 '14 19:08 Lawouach

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

shaxbee avatar Aug 28 '14 11:08 shaxbee