Variables in Websocket messages are not resolved
I have checked the following:
- [x] I have searched existing issues and found nothing related to my issue.
This bug is:
- [ ] making Bruno unusable for me
- [x] slowing me down but I'm able to continue working
- [ ] annoying
- [ ] this feature was working in a previous version but is broken in the current release.
Bruno version
2.13.0
Operating System
macOS 15.7.1 (24G231)
Describe the bug
It is really nice that Bruno now supports WebSockets 🚀 However, there is a problem when using variables in the WebSocket Messages. When using a variable {{variableName}} in the message, it looks like they can be resolved, but then in the actual message that is send the variable is not resolved, and instead the reference value {{variableName}} is still used. Would be great, if it is possible to actually use variables in the WebSocket messages
.bru file to reproduce the bug
No response
Screenshots/Live demo link
Message:
Actual Message that is send:
I can confirm this bug on version v2.13.2. This bug also exists for the "Headers" and "Auth" tab.
While the timeline shows:
(The timeline seems to not be the problem as placing the actual value instead of a variable fixed my authentication problems)
Hey, thanks for the report
The headers and auth not resolving the variable is definitely a bug though I'm sure that support for message interpolation was not added, this will be done in the next few releases
Leaving this open since the PR only partially addresses the issues mentioned here.
Update: Moved @lhind-linus's issue to it's own issue https://github.com/usebruno/bruno/issues/5879
I would like to add on to this that variables are also not being resolved in the URL field. This was checked in v2.14.2
I would like to add on to this that variables are also not being resolved in the URL field. This was checked in v2.14.2
I've moved it as a new issue so we can track it better. https://github.com/usebruno/bruno/issues/6089
To help me out though, can you add in more details about the kind of variables that aren't being interpolated ? Scripts, runtime, etc