Android app did not receive data from SignalR hub

前端 未结 2 1739
难免孤独
难免孤独 2021-02-06 01:10

I already read these topics:
how to use SignalR in Android
Android Client doesn\'t get data but .net client getting data from SignalR server

I write a simple cha

2条回答
  •  梦如初夏
    2021-02-06 01:32

    You does not provider parameters in your client-side which should be same as your side-site. The code should be below:

          hub.on("NewMessage", new SubscriptionHandler1() {
            @Override
            public void run(String message) {
                Log.d("

提交回复
热议问题