@ESD_Parbodh_Kumar I looked your code and noticed that you are subscribing to the WebSocket from the getMarketDataFeed.php file. This method is not correct. Please use the following code in the getMarketDataFeed.php file to subscribe to your WebSocket:
<?php
require_once(__DIR__ . '/vendor/autoload.php');
use Upstox\Client\Configuration;
use Upstox\Client\Feeder\MarketDataStreamer;
use Revolt\EventLoop;
function on_open($streamer)
{
print("Connection Established");
$streamer->subscribe(["NSE_INDEX|Nifty 50", "NSE_INDEX|Bank Nifty"], "full");
}
function on_message($streamer, $data)
{
print($data);
}
$config = Configuration::getDefaultConfiguration()->setAccessToken(<ACESS_TOKEN>);
$streamer = new MarketDataStreamer($config);
$streamer->on("open", 'on_open');
$streamer->on("message", 'on_message');
$streamer->connect();
EventLoop::run();
This aligns with the example codes provided. Kindly use this.