Step-by-Step Guide to Subscribing to FYERS Data WebSocket

How can I subscribe to the Data Websocket provided by FYERS?

To subscribe to the Data Websocket, follow these steps:
  1. Create an instance of the Websocket class as provided by FYERS.
  2. Connect to the Websocket server.
  3. Authenticate your connection using the necessary credentials.
  4. Subscribe to symbol updates and/or depth updates for the specific symbols that interest you.
  5. Check the Websocket for incoming data and updates.
This process will enable you to receive live updates and data for the symbols you've subscribed to.