CherryPy, how to pass parameters into the websocket class
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python
- Domain
- networking
Research direction
The issue does not name a file, test, or entry point. Start by tracing how WebSocket subclass instances are created and how request.wsgi_environ is passed, then determine whether the requested credential-passing behavior can be supported. Done means there is a documented or implemented way to provide credentials without resending them.
Written by the indexing model from the issue text.
Description
Hi,
I have a problem, and I cannot find this information anywhere in the documentation.
I need to pass credentials into each WebSocket subclass instance, and I can find out how to.
It doesn't seem to be possible to read anything useful from the request.wsgi_environ being passed
I am not sure I understand why the request itself isn't being passed instead? self.environ isn't being used anywhere by the WebSocket itself as far as I can see, so there should be no problems with sending the request instead.
Either that, or is there a way to cut in and be the one that instantiates my web socket descendant?
Because it would seem as an unnecessary round trip to having to resend the credentials again.
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 285
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Lawouach/WebSocket-for-Python
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Lawouach/WebSocket-for-Python#300 ·
-
question
Lawouach/WebSocket-for-Python#297 · 2 comments · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
Lawouach/WebSocket-for-Python#296 ·
-
Lawouach/WebSocket-for-Python#280 · 1 comment · 1 assignee ·
-
Setup new CI Open
Lawouach/WebSocket-for-Python#275 · 1 assignee ·
All issues in Lawouach/WebSocket-for-Python
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100