how to create a signalR hub proxy in javascript, having hubs in class library?

回眸只為那壹抹淺笑 提交于 2020-01-05 04:13:13

问题


currently, am working on chat application using signalR and agsxmpp library, I have seen many examples how to create a proxy of hub in javascript. however, my architecture is differ from these examples.

I have class library and a web project(web forms)

Hubs are written in class library, and java script exists in web project, I want to create proxy of hub(written in class library) in java script I have tried a lot. but couldn't find a solution.

I have read owin(startup.cs) but still not a clear picture, where should I keep my owin class, in web project or class library?

I have defined my scenario in detail here when I don't have a class library it works fine.

when I have a class library.

来源:https://stackoverflow.com/questions/40254160/how-to-create-a-signalr-hub-proxy-in-javascript-having-hubs-in-class-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!