MessageReceived method/function not available in the smart-api.dll
-
Hello Admin -
MessageReceived method/function not available in the smart-api.dll for websocket. Could you please update the dll with the MessageReceived method for websocket?
-
@admin said in MessageReceived method/function not available in the smart-api.dll:
HI @West2t14
The MessageReceived is not missing in the library, It's there. you has to create an instance of WebSocket class of AngelBroking library as follow then you can get access to this event handlerAngelBroking.WebSocket _WS = new AngelBroking.WebSocket(); var exitEvent = new ManualResetEvent(false); _WS.ConnectforStockQuote(sagr.feedToken, Client_code); if (_WS.IsConnected()) { string script = "nse_cm|2885&nse_cm|1594&nse_cm|11536&nse_cm|3045"; _WS.RunScript(sagr.feedToken, Client_code, script, "mw"); _WS.MessageReceived += WriteResult; //_WS.Close(true);// to stop and close socket connection }
Thank you! Will check it out!
-
HI @West2t14
The MessageReceived is not missing in the library, It's there. you has to create an instance of WebSocket class of AngelBroking library as follow then you can get access to this event handlerAngelBroking.WebSocket _WS = new AngelBroking.WebSocket(); var exitEvent = new ManualResetEvent(false); _WS.ConnectforStockQuote(sagr.feedToken, Client_code); if (_WS.IsConnected()) { string script = "nse_cm|2885&nse_cm|1594&nse_cm|11536&nse_cm|3045"; _WS.RunScript(sagr.feedToken, Client_code, script, "mw"); _WS.MessageReceived += WriteResult; //_WS.Close(true);// to stop and close socket connection }
-
@admin Thank you! Will be waiting for your reply. I am stuck here and this will help me automate my trades!
-
HI @West2t14 we have reported this to the team we will update you soon.
-
@admin Hello There -
Any update here?
-
@admin said in MessageReceived method/function not available in the smart-api.dll:
Hi @West2t14 we have reported this to team.
Thank you!
-
Hi @West2t14 we have reported this to team.