SignalR: Hub OnConnected not called if no client methods

后端 未结 2 1696
轮回少年
轮回少年 2021-02-12 23:57

I am writing a game in SignalR. The idea is that you connect with your laptop, which will be used as \"display\" and then you connect with your smart phone and that will be used

2条回答
  •  死守一世寂寞
    2021-02-13 00:36

    That's by design. If you don't have any subscriptions to the hub then that particular client can't won't get any messages from server to client. You can still invoke methods on the hub.

提交回复
热议问题