Websocket connections with postman

前端 未结 10 646
星月不相逢
星月不相逢 2020-12-24 04:10

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.

Is it possible

相关标签:
10条回答
  • 2020-12-24 04:35

    I've run into this issue often enough that I finally created my own barebones GUI for testing websockets. It's called Socket Wrench, it supports

    • multiple concurrent connections to servers (with all responses and connections displayed in the same view),
    • comprehensive message history to enable easy re-use of messages, and
    • custom headers for the initial connection request.

    It's available for Mac OS X, Windows and Linux and you can get it from here.

    0 讨论(0)
  • 2020-12-24 04:38

    You can use Socket.io tester, this app lets you connect to a socket.io server and subscribe to a certain topic and/or lets you send socket messages to the server

    0 讨论(0)
  • 2020-12-24 04:44

    I ran into the exact same problem. Had to make a Web Socket call. I was able to accomplish this using Advanced Rest Client. I'm using ARC version : 12.1.3

    0 讨论(0)
  • 2020-12-24 04:46

    It's not possible in Postman yet; But there is a new alternative for Postman, named Postwoman. it's open source and supports realtime Websocket and SSE requests.

    Update

    It seems they have rebranded Postwoman to Hoppscotch and have improved the Websocket support.

    0 讨论(0)
  • 2020-12-24 04:49

    Postman doesn't support it, but WebSocket King does.

    0 讨论(0)
  • 2020-12-24 04:50

    Postman currently does not support that.

    You may use this online tester by Websocket.in: https://www.websocket.in/test-online

    0 讨论(0)
提交回复
热议问题