Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

[QUESTION] Is it possible to modify websocket stubs from StubbyClient in runtime? #515

@IgnacioPuigMargalef

Description

@IgnacioPuigMargalef

Hello again,

I have another question. Is it possible to modify WebSocket stubs from StubbyClient at runtime?

I want to start Stubby using StubbyClient in Java and dynamically change the request and response for a WebSocket endpoint in each integration test. I’ve been searching through the code and documentation but haven’t found a way to do this.

It is mandatory for me to achieve this in Java. The alternative would be to restart Jetty and modify a .json file, but that is a low-level solution that I would prefer to avoid because it requieres and additional handler above Stubby4j, which is not desired in my case (but possible).

Thanks!

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions