Skip to main content
Version: Upcoming

Connecting with Postman

In this guide, we are using the Postman application to connect to MLink via WebSocket.

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.)

  2. Postman WebSocket request
  3. Enter the WebSocket server URL. A WebSocket URL begins with ws:// or wss://. Ensure to replace <token> with appropriate Authorization token.

  4. WebSocket server URL
  5. Enter the Message to be requested for streaming.

  6. Message to be requested for streaming
  7. Select Connect.

  8. After clicking the Connect button, there will be a handshake response which will correspond to proper connection.

  9. Handshake response
  10. Once the connection is established, proceed by clicking on the Send button to dispatch the request. Upon successful execution, anticipate receiving a response similar to the following example.

  11. Response example

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