You can revisit your previous WebSocket sessions within the History section of the Postman sidebar. Reusing and collaborating on your WebSocket APIs The timeline is accompanied by convenient overall search and filter options that help you reduce noise in a very chatty WebSocket API and get to the exact message you are interested in. Subsequently, for the messages you want to dig deeper into, you can expand the message preview and be greeted by the same powerful Message Editor with syntax highlighting and comprehensive search functionality. This timeline shows you previews to quickly find the message you are interested in. The messages you send or receive from the WebSocket API show up in the unified message timeline right below the Message Editor. Pro Tip: You can use your favorite cmd/ctrl+enter keyboard shortcut to send the messages. You can even compose raw ArrayBuffer messages, which was something we found handy while debugging a few of our WebSocket APIs. The extra-large compose area with the ability to syntax highlight and auto-format JSON and XML makes it super easy to send WebSocket messages. Once connected, you can use the Message Editor to compose your messages. Our second order of business was to provide a powerful search on the stream of WebSocket messages coupled with an easy way to send and preview the contents of these messages. Postman automatically adds the basic WebSocket headers needed to connect. You can customize headers and query parameters needed to make your WebSocket connection. Connecting to WebSocket API using Postman And, if you face issues connecting to your WebSocket API, Postman shows you detailed information of the handshake process. To solve this problem, we leveraged what we do best-we used our knowledge of HTTP APIs and built a powerful interface that allows you to highly customize and debug the first connection (handshake) call that you make with the server. Getting startedįrom the very beginning, we noticed that the most arduous thing getting in the way of using WebSocket APIs is the very act of connecting to a WebSocket API server. Take it for a spin and give us feedback in our WebSocket discussion forum. In this tab, you can input your WebSocket API URL, establish a connection, then send and receive messages seamlessly. In the latest version of Postman, you can now hit the “New” button in the left sidebar and open a WebSocket Request tab. The protocol enables continuous two-way communication between your browser and the web server, and for Postman, it has meant the advent of a whole new paradigm of asynchronous APIs. Support for the WebSocket protocol is one of the most popular feature requests we’ve received from the Postman community. This key update to our API platform is currently available in public beta with Postman v8.5 and above. Today, we are excited to announce that Postman now supports WebSocket APIs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |