SignalR,如果集线器类保留在其他库项目中,如何调用集线器连接?

时间:2018-11-11 09:34:01

标签: signalr

SignalR,如果在其他库项目中保留集线器类,如何调用集线器连接。

如果同一项目具有公共class ChatHub : Hub{}类,则要调用连接,我们需要调用var hubNotif = $.connection.chatHub;

但是,如果我的ChatHub类停留在不同的类库中,那么我将如何获得var hubNotif

Cannot read property 'client' of undefined using SignalR

未发生错误?

0 个答案:

没有答案
相关问题