Web Socket and TCP communication RRS feed

  • Question

  • Hi All,

    We have a requirement to implement both TCP communication and Websockets in a single service. The requirement is like we have a service which will act as Server for both TCP and Websocket communication. TCP is used connect devices to our service. Web socket is used to send device data back to registered clients. When there is any event on device, device will send respective data to our service. 

    Web socket client should connect to same service and register to events from a specific device. When there is a event on device, our service will receive data and process it. The processed data will be sent back to registered web socket clients.

    I know how to implement all this but my question is can we achieve this in single service? To make Web socket service available over network, we have to host it in IIS. In one of the blog i read that TCP communication(with devices) in IIS is not a good option.

    Veeresh Angadi

    Monday, November 18, 2019 10:24 AM

All replies

  • Hi Verresh,

    Thank you for posting here..

    Since this thread is related to WebSocket, I suggest you can go to the Asp.net forums. to ask this question.

    The Visual C# forum discusses and asks questions about the C# programming language, IDE, libraries, samples, and tools.

    Best Regards,


    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.

    Tuesday, November 19, 2019 9:04 AM