Websockets (and any other connection upgrade) does not support local testing.
What's missing?
As noted in #2836, Websockets cannot be tested with a local client. Ideally, local::Client should expose the ability to perform a connection upgrade, so that rocket_ws can implement proper testing functionality.
Ideal Solution
No response
Why can't this be implemented outside of Rocket?
Although web socket specific code can and should live outside Rocket, the local client code needs to support the upgrade mechanism to allow the external implementation.
Are there workarounds usable today?
No response
Alternative Solutions
No response
Additional Context
No response
System Checks
- [X] I do not believe that this feature can or should be implemented outside of Rocket.
- [X] I was unable to find a previous request for this feature.
@the10thWiz I would give this issue a try. I think we may have to refactor part of the Client API first. Maybe need some help later cause I am pretty new to rocket source code.
@JasonHonKL that sounds great. If you have questions, let me know, but I may be fairly busy with some things in my personal life.