-
Is SEO help: AsyncAPI support |
Beta Was this translation helpful? Give feedback.
Replies: 72 comments 15 replies
-
That would be a killer feature, if opening Websockets, reading the stream and sending messages through the UI would be possible. |
Beta Was this translation helpful? Give feedback.
-
To be honest, I currently have no plans to support websockets, but I also don't work with them so don't understand how the workflow would be different from regular HTTP requests. I'm also not sure if Are there any awesome websocket debugging tools out there? I would love to be enlightened both about existing tools and what your ideal workflow would look like. |
Beta Was this translation helpful? Give feedback.
-
Hi gschier. |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Beta Was this translation helpful? Give feedback.
-
Probably one of the major differences would be that websocket, like most messaging protocols, isn't required to be designed around the request/response paradigm. Websockets can stream events, and messages either way might not elicit responses. The connections are much more likely to persist beyond the length of the request. So you'd probably want some type of persistent connection management. Either with predefined endpoints that you could reference, or with endpoint templates. Honestly, I'd love a few more dimensions in the configuration templating anyway. There are times when I want to flip more switches and turn more knobs than the base and sub-environments allow for. Sub-environments really only let you change one set of values, so you end up with more sub-environments than necessary, or you end up manually changing some values in different environments. For request/response messages, the interface could be very similar to what it is now. If you're sending your messages slowly and synchronously, it'll work fine. But it's probably not a bad idea to consider an additional websocket data pane that streams the messages as they come in. It'd be handy for things like event subscriptions, Maybe you could check the URI for the With Websocket, you can send several messages at once and be waiting for responses to all of them. Generally users who need to directly relate responses to the original requests over websocket, they'll have some means of doing so in the message itself. For structured messages like JSON and XML, you'd add a property that matches one provided in the request. This could be pretty tricky to implement, as you might need two filters: one for the request and one for the response to pair them. Websockets can also send strings and binary data, which could require more complex logic to parse the messages. For complex binary messages (e.g. protobuf), you might need plugins that understand the logic and can load the definition files. But honestly, just JSON/XML/string support would be a huge step forward. Binary support is a much lower priority, And initial implementations could leave all parsing to the user. Once you've got a basic configuration interface for event streaming, people could look into adding alternate messaging implementations like socket.io, SignalR or STOMP. Binary message support and protocol definitions (e.g. .proto files) could be another thing to start working into plugins (e.g. gRPC, but implemented over HTTP). |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Beta Was this translation helpful? Give feedback.
-
Can we reopen this? It's still a valid request. |
Beta Was this translation helpful? Give feedback.
-
I agree. I think this would be a great idea, and would really help with my testing. |
Beta Was this translation helpful? Give feedback.
-
@davix postman still does not allow saving websocket calls but Firecamp does |
Beta Was this translation helpful? Give feedback.
-
Recent post from libcurl's author related to WebSockets support https://daniel.haxx.se/blog/2021/09/16/you-wanted-websockets/ |
Beta Was this translation helpful? Give feedback.
-
This is the most upliked issue here (you can sort by Thumbs Up in the issue list). It's also the only reason which keeps me away from using Insomnia as our team API client. Would love to see this feature. |
Beta Was this translation helpful? Give feedback.
-
Has there been any progress from 2017 to now? I saw that postman has already implemented support for websocket. |
Beta Was this translation helpful? Give feedback.
-
anti stale bot bump |
Beta Was this translation helpful? Give feedback.
-
Is this a feature that is coming to Insomnia any time soon? |
Beta Was this translation helpful? Give feedback.
-
https://daniel.haxx.se/blog/2021/09/16/you-wanted-websockets/ GraphQL Subscription.... |
Beta Was this translation helpful? Give feedback.
-
Hey folks! I've converted this to a Discussion with other feature ideas so we can keep track of this better. We're currently in the process of updating our networking stack, which should start to enable supporting a variety of AsyncAPI protocols. It seems like WebSockets is by far the most popular one. Unfortunately, at this time, we don't have any solid plans to work on this yet. It's definitely something we want to do, but it's a question of time and priority. We'll keep revisiting this as we go, so please keep upvoting! |
Beta Was this translation helpful? Give feedback.
-
It would be cool to have websocket support, http and websockets are frequently used together |
Beta Was this translation helpful? Give feedback.
-
why is this still not a thing after at least 5 years of requesting it? |
Beta Was this translation helpful? Give feedback.
-
WebSockets are now supported as of version 2022.6.0 |
Beta Was this translation helpful? Give feedback.
WebSockets are now supported as of version 2022.6.0