Rocket icon indicating copy to clipboard operation
Rocket copied to clipboard

Websockets (and any other connection upgrade) does not support local testing.

Open the10thWiz opened this issue 1 year ago • 2 comments

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 avatar Aug 02 '24 00:08 the10thWiz

@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 avatar Jun 29 '25 06:06 JasonHonKL

@JasonHonKL that sounds great. If you have questions, let me know, but I may be fairly busy with some things in my personal life.

the10thWiz avatar Jun 30 '25 14:06 the10thWiz