Setting up Signal R in Android: Crash/Hung Issue

后端 未结 1 1980
予麋鹿
予麋鹿 2021-01-23 10:32

I followed THIS tutorial to set up a .NET Backend for my Android app to implement Signal R. I set up a SignalR Self-Hosted backend.

Here\'s my Backend Code in a

相关标签:
1条回答
  • 2021-01-23 11:31

    I had similar issue a few days ago and this Github issue helped: https://github.com/SignalR/java-client/issues/63

    Basically what I did was modify the WebsocketTransport.java in the signalr-client-sdk project. Replace:

    uri = new URI(url);
    

    with

    uri = new URI(url.replace("http://", "ws://"));
    

    around line 86 in the source code.

    I can now connect and send message and recieve raw data but cannot subscribe to events...

    Hope this helps you get passed your problem.

    0 讨论(0)
提交回复
热议问题