Replies: 2 comments 2 replies
-
@michaelstaib sorry for pinging you on this, I'm testing the new generate command on HC 13 and I can't find an answer to this question either. The My requirement is pretty simple, I want to create many instances of the same client with different authentication tokens each time. I have a suite of service tests I'm porting to Strawberry Shake where the pattern followed is to create users on the fly for each test. Plus I have quite a few tests of different users interacting with each other (think of a websocket chat between users). |
Beta Was this translation helpful? Give feedback.
-
@repne Have you made any progress on this? I was able to make SH to use my own http and websocket clients. Http one is somewhat easy but to do the same for websockets you need to implement your own IWebSocketClient which is the main paint point. |
Beta Was this translation helpful? Give feedback.
-
Hi there,
how can i instantiate the generated client without dependency injection?
There's only 1 ctor that needs a bunch of parameters and i don't know how to get them properly wired up.
Can you provide an example (maybe update the documentation too) ?
btw: when i set "dependencyInjection": false the DI is still working?!
Beta Was this translation helpful? Give feedback.
All reactions