Setting up Signal R in Android: Crash/Hung Issue

杀马特。学长 韩版系。学妹 提交于 2019-12-02 05:15:27

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!