-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QUESTION] Is it possible to configure websocket server to return different results #459
Comments
Thanks for opening your first issue. Pull requests are always welcome too! :) |
Hey @toerni , Thank you for the question. Unfortunately, although this is supported in stubby4j on HTTP (I am quoting stubby's HTTP docs
I do not have an equivalent functionality for web sockets ... I can try to find a time next week to make a PR |
Hi, I need this feature for my automation as well .. Has this been implemented ? |
I guess we can achieve this by configuring on-message for the client to send a particular message and upon receiving that message we can send the desired response .. But our automation is in python and am trying to figure out how to send a WebSocket message to admin portal from python code .. any help or tips to achieve this is really appreciated :) |
Started work |
Done. Please have a look: https://stubby4j.com/docs/websockets_configuration_howto.html#server-response-required I will try to release the |
Stubby websocket server can be configured to return a certain response on connection time.
With the delay, you can specifiy how much time passes between each send
However, I can't get stubby to send a different response every time the delay passes.
Eg., after a second send response 1, after two seconds, send response 2 en after 3 seconds a third response
The text was updated successfully, but these errors were encountered: