> ## Documentation Index
> Fetch the complete documentation index at: https://gb.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Connection Guide

In this guide, we are using Postman application.

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

   <img src="https://mintcdn.com/gb/m-EQfBhjVZL71zUR/images/postman-websocket.png?fit=max&auto=format&n=m-EQfBhjVZL71zUR&q=85&s=8e5ace7a05d260acede8bc9c1d87d1f0" alt="WebSocket URL" width="746" height="555" data-path="images/postman-websocket.png" />

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

   <img src="https://mintcdn.com/gb/m-EQfBhjVZL71zUR/images/web-socket-url-entering.jpg?fit=max&auto=format&n=m-EQfBhjVZL71zUR&q=85&s=da6cfbc3714740ac40bbd46d1aa9fd68" alt="WebSocket URL" width="1385" height="477" data-path="images/web-socket-url-entering.jpg" />

   Ensure to replace `<token>` with appropriate Authorization token.

3. Enter the Message to be requested for streaming.
   <img src="https://mintcdn.com/gb/m-EQfBhjVZL71zUR/images/websocket-message.png?fit=max&auto=format&n=m-EQfBhjVZL71zUR&q=85&s=a217cc7dac0b7f2129298d246a2f3d3a" alt="WebSocket URL" width="1401" height="508" data-path="images/websocket-message.png" />

4. Select **Connect**.

5. After clicking the **Connect** button, there will be a handshake response which will correspond to proper connection.
   <img src="https://mintcdn.com/gb/m-EQfBhjVZL71zUR/images/web-socket-handshake-response.jpg?fit=max&auto=format&n=m-EQfBhjVZL71zUR&q=85&s=c730a38240069dd6da177d0567dd13d5" alt="WebSocket URL" width="1390" height="705" data-path="images/web-socket-handshake-response.jpg" />

6. 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.
   <img src="https://mintcdn.com/gb/m-EQfBhjVZL71zUR/images/web-socket-streaming-response.jpg?fit=max&auto=format&n=m-EQfBhjVZL71zUR&q=85&s=b37eaae7b2c9ebf005a362ce0ffde067" alt="WebSocket URL" width="1377" height="446" data-path="images/web-socket-streaming-response.jpg" />

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