java - HubConnection.getConnectionId() returns null in signalR in android -



java - HubConnection.getConnectionId() returns null in signalR in android -

i using signalr java client, using method connecting host getting negotiation exception , connectionid returs null

connection = new hubconnection(host); hub = connection.createhubproxy("chat"); hub.subscribe(mainactivity.this); hub.on("addchatmessage", new subscriptionhandler() { @override public void run() { // todo auto-generated method stub log.e("test", "entered in hub.on method"); } }); // connection.start(); signalrfuture<void> awaitconnection = connection.start(); seek { awaitconnection.get(); } grab (interruptedexception e) { log.e("<<<exception>>>", ""+ e.tostring() + "<<<>>>" + e.getmessage()); } grab (executionexception e) { log.e("<<<exception>>>", "" + e.tostring() + "<<<>>>" + e.getmessage()); } log.e("", "connectionid : "+ connection.getconnectionid());

hub = connection.createhubproxy("wallpostchat"); hub.subscribe(mainactivity.this); hub.on("addchatmessage", new subscriptionhandler() { @override public void run() { // todo auto-generated method stub log.e("test", "entered in hub.on method"); } });

java android signalr

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -