SignalR: Hub OnConnected not called if no client methods

后端 未结 2 1864
别跟我提以往
别跟我提以往 2021-02-13 00:17

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.

提交回复
热议问题