DEV Community

Zaw Htut Win
Zaw Htut Win

Posted on

Postman can subscribe web socket topics

Yes, using postman, I can connect to the channel. For example

wss://contract.mexc.com/edge

Just click the "Connect" button and once it's connected paste the subscription message and click "Send" button. That's it. You got subscribe to the web-socket topic.

wss://contract.mexc.com/edge
Enter fullscreen mode Exit fullscreen mode

Image description

{
  "method": "sub.depth",
  "param": {
    "symbol": "BTC_USDT"
  }
}
Enter fullscreen mode Exit fullscreen mode

Image description

There are some articles on the internet claiming that Postman cannot subscribe to topics and such. It's wrong. It can without even the help of scripts and programming it can subscribe to web-socket topic.

Top comments (0)