Hi, I am currently able to send a request to a server from a client using the code below on a button click. However to send continuous response to the server, I need to create a way to receive the response from the Server in my current application as well.
Public String Head_Nod ={\r\n"msg_id"\":\"Head_Nod\",\r\n\"action\":2\r\n}"
Using WebSocket4Net;
WebSocket ClientSocket=new WebSocket("ws://localhost:6001");
ClientSocket.Start();
ClientSocket.Send(move.Head_Nod);
But because I am currently using .Net Framework 4.0, I need to work around using the default websocket.dll from visual studio and cannot use Task,Await, Async to wait for the response. Thank You!