Using variables in requests and messagesYou can use Postman variables in the URL of a WebSocket connection or the body of a message.
Socket.IO requests in Postman A new Socket.IO request cannot be created by opening a new tab hence we need to go to New > WebSocket Request. Select Socket.IO from the dropdown and key in the HTTP server url in the address bar. We can start sending and receiving message once the connection is established.
May 20, 2021, As of version 8.5.0 - Postman supported WebSocket APIs
This is not possible as of May 2017, because Postman only works with HTTP methods such as POST, GET, PUT, DELETE.
P/S: 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.
Smart Websocket Client
Postman doesn't support it, but WebSocket King does.

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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With