我正在使用 Postman 测试现有的 REST API.此 API 调用服务器上的异步函数,这些函数使用 StompJS 通过 websocket 返回响应.
I'm using Postman to test an existing REST API. This API calls async functions on the server which return a response over a websocket using StompJS.
是否可以使用 Postman 连接到 websocket?
Is it possible to connect to the websocket using Postman?
2021 年 5 月 20 日,截至 8.5.0 版 - Postman 支持 WebSocket API
May 20, 2021, As of version 8.5.0 - Postman supported WebSocket APIs
这在 2017 年 5 月是不可能的,因为 Postman 仅适用于 HTTP 方法,例如 POST、GET、PUT、DELETE.
This is not possible as of May 2017, because Postman only works with HTTP methods such as POST, GET, PUT, DELETE.
P/S:如果您想投票,请对此提出要求:github.com/postmanlabs/postman-app-support/issues/4009
P/S: There is a request for this if you want to upvote: github.com/postmanlabs/postman-app-support/issues/4009