How to integrate WebSockets on top of a classic ASP web application?

前端 未结 1 685
时光取名叫无心
时光取名叫无心 2021-02-10 10:07

In one of my projects, I have a very active classic ASP site with a requirement to integrate live event-based feeds as part of the existing UI. There is a plan to upgrade the s

相关标签:
1条回答
  • 2021-02-10 11:07

    I would do a SignalR app and integrate it in you old app.

    It's easy to integrate ASP classic with ASP.net MVC. Just mix the projects and exclude *.asp from the routes

    routes.IgnoreRoute("{resource}.asp/{*pathInfo}");
    

    You will have some trouble in the root (/), but you can sort it with a redirect.

    For a mixed authentication (if you need it) you will need to write your own authentication in MVC to use the same auth cookie that you use in Classic ASP. I've done this in the past with success.

    0 讨论(0)
提交回复
热议问题