none
WebSocket4Net Server Creation RRS feed

  • Question

  • 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!
    Monday, July 16, 2018 1:28 AM

All replies

  • Hi DerpyShaun,

    This forum discuss and ask questions about the C# programming language, since your issue is a 3rd-party component issue, I would suggest that you could post your issue on 3rd-party forum for suitable support.


    https://github.com/kerryjiang/WebSocket4Net/issues

    Thanks for your understanding.

    Best regards,

    Zhanglong 


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, July 16, 2018 9:02 AM