Create a WebSocket Request

You can create a WebSocket request from the sidebar in Postman.

  1. Select New > WebSocket to open a raw WebSocket request in a new tab. You can also select New > Socket.IO to open a Socket.IO request in a new tab. (In the Postman desktop app, you can also select ⌘+N or Ctrl+N.)

    New WebSocket request
  2. Enter the WebSocket server URL. A WebSocket URL begins with ws:// or wss://.

    WebSocket URL
  3. Select Connect.

To disconnect your WebSocket request's connection, select Disconnect.

If you’re using the Postman web app, for the best experience consider using the Postman Desktop Agent. See About the Postman Agent for more information.

Last modified: 2023/11/01