Hi Martin !
I'm really sorry for creating a new thread here for my previous thread related to Websockets , Its becuase Im not find how to reply to your suggestions in the previous threads, dont see any options , hence Im creating new it isnt my intention to create it again and cause confusion hope you really understand .
I really appreciate your help following is the code I have implemented in .NET and trying to call it x++ .
I'm able to connect to WebSocket , post Connect sync() call the connection state property is set to Open which signifies HTTP
handshake has been completed . Following are my queries
1)RecieveAsync () the debugger comes out and the process is stopped after following line of code , I can find out if the connection is established and the response from WB Sever as debugger doesnt navigate to next line .
result = await webSocket.ReceiveAsync(new ArraySegment<byte>(buffer), CancellationToken.None);
pls refer to attachement debuggerSS for detailed explaination of the issue
2 ) Not able to get the response from .Net and return it in x++ as result Im not able to figure out wats the status .
3) I tried exectuting the same process via post Man.
* First I generateToken
*Second I establish connection with WB
*I do a post request which results in output 200K acknowledged .
*Response JSON is shown as out on WEBSOCKET
My only question is where should call the logic for post() after calling the logic for establishing WebSocket Connection? would that be right place to put it? Also I cannot see the output cus unfortunately i havent been able to get the response from .Net into x++.
Have attached code snippets pls let me know wat possibly could I do , have been stuck on this issue for a while and its very bothersome now