none
.Net 4.6.1 WebSockets: Create Unique Websocket URL at runtime RRS feed

  • Question

  • I am exploring using Websockets in my ASP.Net (4.6.1) application that is launched by a user specifying their loginid and phone criteria in the query parameters. When the associated web page is launched it has the user criteria within. I am using websockets to exchange phone commands from the webpage to the server and phone events from the webserver to the client page. All is working well.

    But the issue is, how to extend this beyond a single user on a server? I need a unique Websocket URL so that one users Websocket communication does not get tangled with another users. Is there a way to set up a unique Websocket URL at runtime within the ashx component - either a unique URL Path (e.g. ws:///WebSocketHandler.ashx) or a unique Port (e.g. ws://:/WebSocketHandler.ashx)?

    I would think that this requirement is not that uncommon, but I have found no real references.

    Sunday, June 25, 2017 3:34 PM

All replies

  • Hi Ralph Flotner,

    Thank you for posting here.

    According to your question is more related to Web, you could post a new thread link in ASP.NET forum.

    This CLR Forum discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection. Also discuss all the other Microsoft libraries that are built on or extend the .NET Framework, including Managed Extensibility Framework (MEF), Charting Controls, CardSpace, Windows Identity Foundation (WIF), Point of Sale (POS), Transactions. 

    Best Regards,

    Wendy


    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, June 26, 2017 9:02 AM