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 to connect to the websocket using Postman?
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 to connect to the websocket using Postman?
Update: May 20, 2021, As of version 8.5.0 - Postman supported WebSocket APIs
Obsolete (original) answer:
This is not possible as of May 2017. There is a request for this if you want to upvote: github.com/postmanlabs/postman-app-support/issues/4009
As the previous comment mentioned you can't do this in Postman. however, I found this Chrome app in the web store. It is very simple, but it's working really well with my local web socket connections.
As of version 8.5.0 - Postman now supports WebSocket requests.
More information can be found here:
https://blog.postman.com/postman-supports-websocket-apis/
Short Level Up video tutorial of the current functionality:
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.
localhost
yet β
Letendre 127.0.0.1
works for now but local network calls like 192.168.x.x doesn't work. β
Lenticularis Postman doesn't support it, but WebSocket King does.
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
It's available for Mac OS X, Windows and Linux and you can get it from here.
You can use the tool APIC available here https://chrome.google.com/webstore/detail/apic-complete-api-solutio/ggnhohnkfcpcanfekomdkjffnfcjnjam. This tool allows you to test websocket which use either StompJS or native Websocket. More info here at www.apic.app
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
Postman currently does not support that.
You can use the online tool at: https://www.piesocket.com/websocket-tester
Postman doesn't support websocket. Most of the extension and app I had ever seen were not working properly.
Solution which I found
Just login/ open your application in your browser, and open browser console. Then enter your socket event, and press enter.
socket.emit("event_name", {"id":"123"}, (res)=>{console.log(res); });
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
Use Firecamp , support websocket(Socketio & Ws ) ,Rest, Graphql , You can install in your système or use plugin https://firecamp.io/
Have not discovered that postman released web sockets function, but in any case i recently wrote my own simple very simple utility with pure js & html (no bootstrap, no npm, no heavy libs), maybe it would be useful for someone: https://github.com/Wissance/wstester
© 2022 - 2024 β McMap. All rights reserved.